$route[':any'] issue |
[eluser]Pascal Kriete[/eluser]
@eesam extending core classes. In this case you will need to override the whole function since the 404 stops the script. There are times when you just want to add something to the end, in which case you would user parent::function_name() to call the parent function. Here's how you would go about doing it for this example. Create a file called MY_Router.php in the application/libraries folder: Code: class MY_Router extends CI_Router { And since you're not changing any core files this is pretty worry free and usually upgrades nicely. Steve Wright's method is easiest if you only have a few other pages, but it does get tedious with a lot of them.
[eluser]Randy Casburn[/eluser]
@inparo - soon we will have written it for EEssam, but hey, I'm having fun ;-) |
Welcome Guest, Not a member yet? Register Sign In |