Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
RESTful controller drops error
ginsama
December 2015
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.
Harro
December 2015
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().
ginsama
December 2015
yes true thanks,
:)
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,089
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
261
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
ginsama
December 2015
Harro
December 2015