![]() |
Questions about functions within controllers - 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: Questions about functions within controllers (/showthread.php?tid=7241) |
Questions about functions within controllers - El Forum - 03-31-2008 [eluser]yello[/eluser] Hi! I am having a bit of a problem figuring out how to code my new app. I was wondering if there is a way to kinda "redirect" the use of a particular function within the same controller. Let me explain: Code: <? Is that possible to do? I don't know where to put my app "logic". I hope you guys can help me! (and understand what is my problem ![]() Thanks! Questions about functions within controllers - El Forum - 03-31-2008 [eluser]Tom Glover[/eluser] As far as i no it should be like this: Code: <? Questions about functions within controllers - El Forum - 03-31-2008 [eluser]wiredesignz[/eluser] Code: if ($this->segment->uri(3) == 'some-string') Questions about functions within controllers - El Forum - 03-31-2008 [eluser]yello[/eluser] Thank you guys! both of your anwsers helped me alot!! ![]() |