04-10-2008, 08:33 PM
|
#1 (permalink)
|
|
The Contributor
Join Date: Sep 2007
Location: Finland
Posts: 45
Thanks: 3
|
How do you boot your site?
I've just wondering here how ppl "boot" theyr sites. So maybe me and some others can learn here one or two things.. ;)
Here is my boot.
first, every page have on start inlude to core.php file.
Core has most important php definitions such as session start and define(this, onthat); things..
At the end of this file we are include init.php.
init.php has all class includes and function files includes.
Then when all core and init stuff is done, our site are almost ready.
then we just call headers from template class file and build our content and last but not least call our footer from template class.
Now, do you guys/gals use lot of classes and functions? I have own build template class (now, here is only header, navigation and footer) and database class. Then in functions I use one function file for most important functions and file for global functions.
All depence what we are running.. If site contains member system, then we need member class etc..
Anyway, I don't have any good point for this threat, just want to know how others start sites and such. =)
Thanks..
|
|
|