Hi, I created my base layout and defined there in the head my default assets.
<?php
/* @var $this \Phalcon\Mvc\View\Engine\Php */
$this->tag->setDoctype(\Phalcon\Tag::HTML5);
$this->tag->setTitle("Default Title");
$this->assets->addCss('css/bootstrap.min.css')
->addCss('css/style.css');
$this->assets->addJs('js/jquery.js')
->addJs('js/bootstrap.min.js');
?>
<?=$this->tag->getDoctype();?>
<html>....
Is this the usual way or should I define the default assets and my default title in a view event like beforeRenderView? Somehow I have the feeling that it is better to define the base title/assets in an event because view's shouldn't have any logic.