Hi,
I'm thinking of an architecture for a medium-complexity dynamic site
as follows:
- I use one php file, say a.php as the entry point for the entire
site. PATH_INFO allows me to pass information to my script by using
URLs like http://mysite.com/a.php/user1000 or
http://mysite.com/a.php/images/10.gif and perform the appropriate
action by calling the appropriate function (which may reside in an
included php file)
- I use apache's url rewriting to redirect urls like
http://mysite.com/page25 to a.php b adding the script name -
http://mysite.com/a.php/page25
- Using Smarty to control the actual HTML output.
This seems to me like a sound and obvious way to do things (and also
rarely done) so my questions are:
- Has anyone on this group tried to do or done something like this
before, using one entry point for the entire site for maximum control?
- If so, what do you think are the pros and cons or this approach?
Regards,
Seun Osewa