Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
rest controller
  • ErrorException [ Warning ]: Missing argument 2 for Fuel\Core\Response::set_header(), called in /Applications/MAMP/htdocs/green/fuel/core/classes/controller/rest.php on line 103 and defined
    <?php
    class Controller_Test extends Controller_Rest { public function get_list()
    {
    $this->response(array(
    'foo' => Input::get('foo'),
    'baz' => array(
    1, 50, 219
    ),
    'empty' => null
    ),200);
    }
    }
  • Hi, I'm getting the same error. I've upgraded to the latest RC2.1 and I've used rest controller from the develop branch (https://github.com/fuel/core/raw/develop/classes/controller/rest.php), but I still get this error .. did I get the wrong file? Any advice?
  • RC 3 is out today, wait for it and re-check.
  • fixed with replace classes/controller/rest.php from github.com/fuel/core rc2.1 not include fix for this bug
  • RC2.1 was a hotfix release with just a security fix, we're planning on releasing RC3 shortly with all the latest fixes from the develop branch.

Howdy, Stranger!

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

In this Discussion