Welcome Guest, Not a member yet? Register   Sign In
Extending core Controller class
#41

[eluser]nmweb[/eluser]
You do include the X_Controller file in your controllers/home.php, otherwise it won't work. The Home class cannot extend the X_Controller class without the X_Controller class being declared first.
#42

[eluser]welzie[/eluser]
Wow my php newbness is showing. That was it I wasn't including X_Controller.php.

I guess I was thinking that since the X_Controller.php file was in the app/libraries folder I didn't need to include it, but that doesn't make since now that I think about it.


P.S. Does the "white page of death" mean that PHP has encountered a severe error and that's why I don't see any error message?
#43

[eluser]ontguy[/eluser]
@welzie - The name of X_Controller.php should be MY_Controller.php. With that change your code should work without using an include.




Theme © iAndrew 2016 - Forum software by © MyBB