Closed vnagara closed 11 years ago
module has those piece of config:
'view_manager' => array(
'template_path_stack' => array(
__DIR__ . '/../view',
),
),
The view folder must exist if it's in the template path stack.
maybe, but with current ZF2 view strategy for .phtml it has no exceptions.
The twig error loader is the extension. All path loading is done via Twig to keep the bridge between zf2 and twig as slim as possible.
@spiffyjr Ok, I get it. Thanks.
If some module hasn't view folder. then:
Fatal error: Uncaught exception 'Twig_Error_Loader' with message 'The "/www/libra-cms/vendor/libra/libra-locale/config/../view/" directory does not exist.' in /www/libra-cms/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php on line 860