title: How to access a module in joomla
body: <p>I have created a calendar module in Joomla. My main file is named jom_cal. Now from admin side i displayed the calendar in the left panel. Further what i want to do is - when a user clicks on a date in calendar i want to open a light box which will show a listing of some records from database into the lightbox. I have created a lightbox we just need to pass the url of the page which we would like to be displayed in the lightbox. Now my question over here is where should i write the code to fetch the records from database and display in the lightbox as in a module i think there is only one main file with the same name a as module. Is there any way that i can create a separate file which  will contain the code to display records from my db and then how can i access this file (i.e. what will be the url to access this file).</p>
  
  <p>Kindly guide me with some appropriate way. </p>
  
  <p>Thanks 
  - Atul</p>