Creating static pages |
[eluser]Maglok[/eluser]
Bump from the dead! Finally had time to look into this. The Router class is pretty nice. I extended the CI_Router with a MY_Router and have gotten it to redirect anything that is not an exsisting controller to the content controller. http://www.domain.com/does/not/exsist router does/not/exsist to http://www.domain.com/content. That's quite neat. Once it is 'in' the controller it is a matter of taking the URI segments and determining what data to load. I do wonder what the array that Phil Sturgeon suggests exactly returns. I can't seem to find any specific documentation on the Router class itself. Code: return array('content', 'static', $segments[0]); Where does it take that array? I use a 'simple' piece of code in my content controller: Code: function index() { Grabs me the uri. |
Welcome Guest, Not a member yet? Register Sign In |