codeguy/Slim — Issue #185: Setting view data as array: Fatal error
Author: DevDavido
Created: 2011-10-15 00:29:40+00:00
State: open

If I use the example code snippet from the [documentation](http://www.slimframework.com/documentation/stable#view-data):

$app->view()->setData(array('foo' => 'bar', 'one' => 1));

I get this error:

Fatal error: Call to a member function save() on a non-object in xxx\Slim\Slim.php on line 1073

Setting it like that works:

$app->view()->setData('foo', 'bar');