![]() |
Creating the view and then the business logic? - 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: Creating the view and then the business logic? (/showthread.php?tid=59000) |
Creating the view and then the business logic? - El Forum - 08-13-2013 [eluser]RaGe10940[/eluser] Hello, I have a controller like so : Code: public function index() { Where index() is the login page ( first page any one will ever see) Now that index page has a function that the form will send to which is : Code: public function login_user() { is it possible to condense this? I feel like having two controller functions per page is excessive no? I tried this : Code: public function index() { but when doing this, this keeps me in a infinite loop of sorts. Creating the view and then the business logic? - El Forum - 08-13-2013 [eluser]jairoh_[/eluser] Code: else { |