I just got a job working for a company that had a previous programmer that took advantage of the http access. One of the things he does with it is...
Make it where every page is pulled up in the index page. depending on which page is called, the include will change. So really when you go to the next page, your not leaving the index page, you stay at the index page and the index page is just calling a different include. the coding of the page has a include for the header and an include for the footer. and an include for the body and the body include is the one that changes everytime the user clicks a different page.
He also has it where you cant see the .php extension in the url. He made where he using some type of regular expression to replace the .php with a / (forward slash)
I find it to be a clever idea, however, it eliminates a few things. like passing URL varibles from page to page. Instead he has it where if you want to pass a varible you have to pass it like this
phpbuilder.com/home/value/
where value is the value itself. to retrieve this value you must use a already set varible called $section which hold the value "value".. The downfall to this is that i can only pass one varible not multiples
My question is...
Is this type of website structuring a good way of building websites ?
if so, is there a better way of structuring so that i can pass more then one varible through the url if needed
Does anyone know why he would do this. And does anyone know of a better way.
But what I would really like to know over all is does anyone know any good books or tutorials that thoroughly go over http access. I would refer a book but any great tutorials will do too. I need to understand it a little bit better. What I mention above may sound confusing to you guys but its confusing to me too, thats why i need to understand it a little more. please, if anyone know any great resources, please give them. thanks