![]() |
One index.php
I am horrible with using one index.php file, and a lot of $_GET[] and mod_rewrite...
how do I get outta this habit? :3 what doesn't belong in the main page? |
what doesn't belong in the main page?
All content thats not always on the main page which can be done by includes =) |
Quote:
|
I don't want to, that's why I posted this :P.
The template class (smarty), a database, and an Index.php file just make EVERYTHING work :/ |
It really shouldn't be that hard to wean yourself of this.
Write up, or draw up a site map. Then make your pages. Index... contact... about... |
$_GET['about'], $_GET['contact'] @import contact.php
|
or...
/contact.php |
you should look into bootstrapping with the MVC pattern.
all traffic is redirected to index.php and depending upon the appended string depends on what is loaded. |
I despise the Singleton and MVC patterns.
Anyway, I have ported most of my code out to include files. It feels weird. |
| All times are GMT. The time now is 10:35 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0