Hello,
in my public/index.php i have
    $di->set('view', function() {
          $view = new \Phalcon\Mvc\View();
          $view->setLayoutsDir( MODULES_DIR . 'common' . DS . 'layouts' . DS);
          $view->setLayout('main');
          return $view;
    }, true);then in my module.php i have
$di->get('view')->setViewsDir(__DIR__ . '/views/');but in this case it renders view first, and then the layout.
My layout has html, head etc... and in my view i have my content. So I want my content inside my body tag.. :D