Bug v3.1.9 MY_Controller |
I define __constructor function inside MY_Controller class extends CI_Controller, just write
Code: echo 'Hello World' this is my code core/MY_Controller.php PHP Code: class MY_Controller extends CI_Controller controller/Home.php PHP Code: <?php the result is null
It might work better if your constructor was called "__construct" (notice the missing "r"), and the same with the parent one you call?
I trust your base controller is inside the system/core folder.
Got love those user bugs lol.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
many IDE's clearly show these typing failures. After all, who never went through it. However, we should pay more attention to errors to avoid user bug posts.
keep an eye on the code |
Welcome Guest, Not a member yet? Register Sign In |