[eluser]Unknown[/eluser]
Hi
I'm a newbie to software development and CI, yet I have a question.
I'm working on my project using Modular Extension. I understand that CI provides a 404 error page when links(modules in my case) can not be found. I wonder if I can customize a 404 page
when
extra input argument is provided. ie.,
function a_function($varaiable1) -> my URL will be 'base_url/module/a_function/$variable1
This will be fine
I'd like to generate a 404 error if
'base_url/module/a_function/varaible/something_else
I wonder how can I achieve that? right now I'm just using uri class to figure out if extra/redundant input was given, then I generate an error page
$this->uri->total_segments() > 1 -> $this->(load error page).
Is there a simpler way to do this? Thank you.