$simple_view = new \Phalcon\Mvc\View\Simple();
$simple_view->registerEngines(
[
".phtml" => "Phalcon\\Mvc\\View\\Engine\\Php",
".volt" => "Phalcon\\Mvc\\View\\Engine\\Volt"
]
);
//$simple_view->getRegisteredEngines();
$simple_view->setViewsDir( __DIR__ . '/../../Templates/Phalcon/');
echo $simple_view->render('Models');
hello every body
when i registering engines into simple view, i have this error:
A dependency injector container is required to obtain the application services
How to use volt engine inside simple view?