![]() |
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.. |
If I'm building a full fledged CMS it usually goes something like this
--Check if the site is active --initiate session --Check for IP ban --Check for 'remember me' cookie and login --Includes called module I use a few main classes- a database class, a core class, a member class, a templating class, a globals class (post,get,etc), a purification class, a loader class. All the classes are called at start up seeing as the bootstap makes use of all of them. |
| All times are GMT. The time now is 05:00 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0