Welcome Guest, Not a member yet? Register   Sign In
include main app controller only once
#5

[eluser]gerben[/eluser]
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.


Messages In This Thread
include main app controller only once - by El Forum - 08-24-2007, 09:15 AM
include main app controller only once - by El Forum - 08-24-2007, 10:19 AM
include main app controller only once - by El Forum - 08-24-2007, 10:55 AM
include main app controller only once - by El Forum - 08-24-2007, 11:10 AM
include main app controller only once - by El Forum - 08-24-2007, 11:43 AM
include main app controller only once - by El Forum - 08-24-2007, 11:48 AM
include main app controller only once - by El Forum - 08-24-2007, 12:05 PM
include main app controller only once - by El Forum - 08-24-2007, 02:08 PM
include main app controller only once - by El Forum - 08-24-2007, 03:03 PM
include main app controller only once - by El Forum - 08-24-2007, 04:57 PM
include main app controller only once - by El Forum - 08-24-2007, 05:05 PM
include main app controller only once - by El Forum - 08-24-2007, 05:29 PM
include main app controller only once - by El Forum - 08-24-2007, 05:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB