ErrorException [ Notice ]: Undefined variable: site_title
Philipp .... wrote on Thursday 30th of June 2011:Hello, example 1 of 'Nested Views' returns some errors for me. Everytime it is something like:ErrorException [ Notice ]: Undefined variable: site_title
But if I try example 2, all works properly.
$this->template->set_global('site_title', 'My site title');
$data['header'] = View::factory('header', $data)->set('site_title', 'My site title')->render();Fact is that there's something not right. Either the docs need to be updated (in case nested views should not inherit variables) or the code should be fixed (in case inheritance is intended).
It looks like you're new here. If you want to get involved, click one of these buttons!