PDA

View Full Version : Demo.php vs Index.php vs Calendar.php


briggs
07-05-2005, 10:29 PM
Almost there with getting the demo to run but a quick question...

Which of the above three php's is the correct one to begin using? Demo and Index are formatted nicely. Calendar.php has no formatting. Is that correct?

Should I just modify to my tastes and use index.php? That way I can simply point to www.mydomain.com/calendar/ (http://www.mydomain.com/calendar/) and it will work. But then what is calendar.php for; and does the setup and event manager drive all three files?

Thanks from a newbie.

Tvhawk
07-06-2005, 06:02 AM
If i remember correctly...the default index page is setup basically as a pull for the demo.php file.....

the demo.php file is where you would want to look for how to set up a page of your own(or to intigrate it into a page already designed)......it shows you how to do the TOC, the normal calendar as well as the events....you define the variable...and then link to the calendar file...which holds the calendar software(well, it links to other files, which link to other files and so on and so on).....so basically.....it all links to the calendar.php file, but you can't just use that file(i don't believe anyways...never tried....does a calendar come up if you point the browser right there?.....)

but i would suggest not touching the demo.php file.....and do all you want to the index file by using the demo.php file as a cheat sheet for ya to get your calendar up and running

ve9gra
07-06-2005, 06:32 AM
That's basically it... Currently the index is there mostly to help with new installs as it will check to see if the licence has been entered or not and it will show either a help screen or fetch the demo accordingly.

The demo.php file should be what you base yourself on to build your own pages (or you can use demo.php directly if you want, just like the index.php uses it).

The file calendar.php should not be touched (except in rare cases where you'd have to manually edit the file paths that are saved up inside). Look inside of demo.php to see how to use the calendar.php.

For always up to date instructions, have a look at http://docs.easyphpcalendar.com/