skip a function in controller. - 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: skip a function in controller. (/showthread.php?tid=45474) |
skip a function in controller. - El Forum - 09-22-2011 [eluser]Unknown[/eluser] hi. i have a little issue with something i am building. it is a simple news system (add, del, edit) for multiple websites. i have a controller called news.php Code: <?php it is not finish yet. the hyperlinks i need to have is. 1) /news/<website>/add 2) /news/<website> under 1) i will have a form with form_open etc. to add a news to the website there is defined in segment 2. under 2) will i have a list view of all the news for the website defined in segment 2, in that list i will have 2 links (edit & del) the links for that i think should be /news/<website>/del/<id> and /news/<website>/edit/<id> but with that controller i posted i do get a 404 when i go to add news (/news/<website>/add). i can't use Code: if($this->uri->segment(3) == 'add'): if you need more code, ex my view you can get that. Kind regards Simon |