I have 2 volt.
/view
/index
/index.volt
/shared
/left_menu.volt //there is some variable should render by SharedController.php
file: index.volt
like this:
{{ partial("shared/left_menu") }}
And file: left_menu.volt
like this:
{{ test }}
SharedController.php:
...
something
...
$this->view->setVar('test', 'why!!!!!!');
...
When I visit the indexController, I got this Notice Error:
Notice: Undefined variable: test in C:\XXXX\app\cache\c__XXXX_app_views_shared_left_menu.volt.php on line 36
Why? and How could I do?
to render a partial view that deals with its own controller?
could you help me? thx.bro.^_^