for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Alexander Torosh <[email protected]>
*/
namespace Web;
use Phalcon\Mvc\View as PhalconView;
use Phalcon\Mvc\View\Engine\Volt;
class View extends PhalconView
{
public function __construct(array $options = [])
parent::__construct($options);
$this->setViewsDir(getenv('ROOT_DIR').'/app/framework/web/modules/front/views/');
$this->setMainView('front');
$volt = new Volt($this, $this->getDI());
$volt->setOptions([
'path' => getenv('ROOT_DIR').'/cache/volt/',
]);
$this->registerEngines([
'.volt' => $volt,
}