You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run this request: http://api.phalconrest.local/v1/example
I get the error: Fatal error: Using $this when not in object context in /var/www/phalcon-rest/controllers/ExampleController.php on line 29
I found that the problem is in index.php line 196, by replacing this:
->setHandler('\PhalconRest\Controllers\ExampleController');
with this:
->setHandler(new \PhalconRest\Controllers\ExampleController());
all works well.
The text was updated successfully, but these errors were encountered:
When I run this request:
http://api.phalconrest.local/v1/example
I get the error:
Fatal error: Using $this when not in object context in /var/www/phalcon-rest/controllers/ExampleController.php on line 29
I found that the problem is in index.php line 196, by replacing this:
->setHandler('\PhalconRest\Controllers\ExampleController');
with this:
->setHandler(new \PhalconRest\Controllers\ExampleController());
all works well.
The text was updated successfully, but these errors were encountered: