URI Routing Like Wordpress Pages and Posts |
[eluser]cornofstarch[/eluser]
For more details go here: http://ellislab.com/forums/viewthread/179020/ The CI manual really needs to be clearer on this for inexperienced people like me. -_-; The example is localhost/test/wow/again. In config/routes.php, I routed all 404 errors to pages.php. Using the controller code above, $method would only show "index" because the method "test" doesn't actually exists in my Pages controller. If I were to add a new method... Code: public function test() ... then I would get the following result in my browser: testwow again I hope this helps someone if they're exploring the remap stuff. |
Messages In This Thread |
URI Routing Like Wordpress Pages and Posts - by El Forum - 01-21-2011, 02:01 AM
URI Routing Like Wordpress Pages and Posts - by El Forum - 01-21-2011, 03:57 AM
URI Routing Like Wordpress Pages and Posts - by El Forum - 01-21-2011, 05:24 AM
URI Routing Like Wordpress Pages and Posts - by El Forum - 01-21-2011, 12:13 PM
URI Routing Like Wordpress Pages and Posts - by El Forum - 01-21-2011, 10:57 PM
URI Routing Like Wordpress Pages and Posts - by El Forum - 01-22-2011, 06:31 PM
URI Routing Like Wordpress Pages and Posts - by El Forum - 01-24-2011, 02:49 AM
|