Welcome Guest, Not a member yet? Register   Sign In
Extending the controller class: can you spot my error?
#2

[eluser]derekmichaeljohnson[/eluser]
Your class needs to be Hank_Controller not HankController.
Code:
class Hank_Controller extends Controller {

    public $foo;

    function Hank_Controller()
    {
        parent::Controller(); // THIS IS THE ERROR LINE 19
    }
}
}
Also:
Code:
class Videos extends Hank_Controller {

    function Videos()
    {
        parent::Hank_Controller();
    }

    function index()
    {
        echo $this->foo;
    }


Messages In This Thread
Extending the controller class: can you spot my error? - by El Forum - 05-17-2009, 10:49 AM
Extending the controller class: can you spot my error? - by El Forum - 05-17-2009, 10:59 AM
Extending the controller class: can you spot my error? - by El Forum - 05-17-2009, 12:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB