Controller cannot have function of same name? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Controller cannot have function of same name? (/showthread.php?tid=45959) |
Controller cannot have function of same name? - El Forum - 10-12-2011 [eluser]Genki1[/eluser] Is there a restriction on naming a controller function the same as the controller? For example, if I have a controller named "test" and add a function named "test()" inside that controller, then CI complains "404 The page you requested was not found". I have tried this in a different controller and get the same result. In the User Guide under "Controllers," it does not say this is not allowed. Any feedback? |