![]() |
Call to undefined method CI_Controller::CI_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: Call to undefined method CI_Controller::CI_Controller() (/showthread.php?tid=59494) |
Call to undefined method CI_Controller::CI_Controller() - El Forum - 10-11-2013 [eluser]huangxiao[/eluser] Hi i just want to ask why is it that i have this error Quote:Call to undefined method CI_Controller::CI_Controller()can yo help me please why Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Thank you in advance. Call to undefined method CI_Controller::CI_Controller() - El Forum - 10-11-2013 [eluser]CroNiX[/eluser] in your constructor, parent should be __construct(); Code: parent::__construct(); Call to undefined method CI_Controller::CI_Controller() - El Forum - 10-11-2013 [eluser]huangxiao[/eluser] Hi already change it as your suggested but i have problem in the redirect(), it will duplicate the url when i submit the form. something like this. [qoute]http://localhost/test/index.php/login/localhost/test/index.php/success/members_area[/qoute] Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); This is my form Code: <div class='container'> Call to undefined method CI_Controller::CI_Controller() - El Forum - 10-12-2013 [eluser]huangxiao[/eluser] [quote author="CroNiX" date="1381520213"]in your constructor, parent should be __construct(); Code: parent::__construct(); Hi what is wrong for my redirect()? |