Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
RESTful controller drops error
  • Undefined property: Controller_****::$response:

    ****/fuel/core/classes/controller/rest.php @ line 180

    180            $this->response->set_header('Content-Type'$this->_supported_formats[$this->format]);

    Everything was working perfect but today I have discovered this error, I have tried everything but still getting it I dunno why, I have even removed some packages from my composer cuz I thought it was the problem but no still getting this error.
  • HarroHarro
    Accepted Answer
    $this->response is created in the Rest controllers' before() method.

    So this looks like the before in your controller doesn't call parent::before().
  • yes true thanks, :)

Howdy, Stranger!

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

In this Discussion