[eluser]esra[/eluser]
[quote author="gerben" date="1187995431"]While the method I descibed in my post works fine, I can seem to get CF's approach to work. Keep getting a blank page.
I've created app_controller.php in app/libraries/app_controller.php:
Code:
<?php
class app_controller extends Controller {
function app_controller()
{
parent::Controller();
}
//etc.
And my controller is set up like this:
Code:
class Player extends app_controller {
function Player()
{
parent::app_controller();
}
// etc.
I can't see what I'm missing here. Could the problem be that I changed the default path to the application folder? I had no problems with that so far.[/quote]
Controller is an alias for CI_Controller, so the code above should work fine, assuming that you are loading your view in your index method which is not shown.
You should not have to set your extended class prefix from MY_ to app_ when usng the Controller alias for the above to work.