Hello,
in my module.php i set
$di['view'] = function(){
$view = new \Phalcon\Mvc\View();
$view->setViewsDir(__DIR__ . '/views/');
$view->setLayoutsDir( '../../common' . DS . 'layouts');
$view->setLayout('main');
return $view;
};
what I want to happen is :
include :
- common/layouts/main.phtml ( where i have <head>head etc... )
- module/views/index.phtml ( where i have "hi " )
but now i see only "hi"
is there anything else I need to configure ? or I should put this configuration elsewhere ?