Welcome Guest, Not a member yet? Register   Sign In
Static Pages
#1

[eluser]Unknown[/eluser]
Perhaps a silly question, how do you code to handle static pages?

I've searched and come out with some .htaccess methods, which I don't want as I would still use the common header / sidebar / footer templates for all pages.

I'm thinking of creating one single controller for handling all static pages and just loading different view files.

e.g, my nav menu may look like this:
Home
Member (<-- where the programs in)
Info
- item1
- item2
...
Service
- item1
- item2
- ...
Other Pages....

For now I've created a Page controller, which _remap to index() and load different page views using switch case (this is not good and need a lot of effort to create cases for every single page)
e.g. index.php/page/info would load the "info" page
but how do I code so that index.php/page/info/item1 would lead to "info-item1" page?
(yes I want the url looks nice and in levels...)

Thanks all for your help / insights


Messages In This Thread
Static Pages - by El Forum - 03-11-2010, 03:56 AM
Static Pages - by El Forum - 03-11-2010, 04:15 AM
Static Pages - by El Forum - 03-11-2010, 12:49 PM
Static Pages - by El Forum - 03-12-2010, 02:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB