Call to undefined method CI_Controller::Controller() |
[eluser]yuro[/eluser]
Hello, I uploaded my CodeIgniter Version to 3.0, because the old version had shown a Error on google.com and now come the next problem: Error: Call to undefined method CI_Controller::Controller()in /.../frontendcontroler.php on line 20 Thats the code: Code: function __construct() Where's the problem? I'm using CI3.0
[eluser]vrencianz[/eluser]
It looks like you must change parent::Controller() Code: public function __construct()
[eluser]CroNiX[/eluser]
http://ellislab.com/codeigniter/user-gui...nstructors
[eluser]yuro[/eluser]
I have corrected the error, but i get a new error: Quote:A PHP Error was encountered Code: //Loader.php: What I must do??
[eluser]CroNiX[/eluser]
The problem is in your other custom code, which you didn't post. Post your entire controller that is causing this issue.
[eluser]yuro[/eluser]
Code: Controller.php Do you mean the Controller.php? Thats the code of the file.
[eluser]CroNiX[/eluser]
No, not the CI controller...whatever controller (or whatever code) YOU made.
[eluser]yuro[/eluser]
okkk thats my file "frontendcontroler.php": Code: class Frontendcontroler extends CI_Controller {
[eluser]CroNiX[/eluser]
I'd start commenting out lines until you find the exact error line. You might also consider not using php4 style property declarations with php5, but that isn't the problem you're having.
|
Welcome Guest, Not a member yet? Register Sign In |