I have this simple method in one of my objects:
public function action_buddy($name = 'buddy')
{
$this->response->body = View::forge('hello', array(
'name' => $name,
));
}
But I always get this warning and can't proceed futher:
Fuel\Core\PhpErrorException [ Warning ]: Creating default object from empty value
From this line:
$this->response->body = View::forge('hello', array(
How can I fix this warning?
p.s. I was following this tutorial http://code.tutsplus.com/tutorials/getting-started-with-the-fuel-php-framework--net-21334