Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Using before()
  • I've got a bit of a daisy chain going on here and it's producing an error. global.php
    class Controller_Global extends Controller_Template
        public function before()
            parent::before();
    
    However, I get this error:
    Declaration of Controller_Global::before() should be compatible with that of Fuel\Core\Controller_Template::before() in /Users/user/Sites/site/fuel/app/classes/controller/global.php on line 3 Any ideas?
  • The message is very clear. Have you checked it? If you're using a Fuel core from before August 14th, before() is defined with a parameter in Controller_Template, so your prototype must define that as well. https://github.com/fuel/core/commit/d8ac16f8d4a0b243b62177d909be2bd84b03c0c2#classes/controller/template.php

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion