We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

i can't render .phtml in project INVO

Hi everybody please help me i use of sample INVO project in my project . i want to render .phtml but i can't render .phtml file in INVO how me render .phtml file in INVO project ? thanks

Displays some error message?



77.7k
Accepted
answer
edited May '16

https://github.com/phalcon/invo/blob/master/app/config/services.php#L57

Edit it like so:

$view->registerEngines(array(
    ".volt" => 'volt',
    '.phtml' => 'Phalcon\Mvc\View\Engine\Php',
));

tanks my friend

https://github.com/phalcon/invo/blob/master/app/config/services.php#L57

Edit it like so:

$view->registerEngines(array(
  ".volt" => 'volt',
  '.phtml' => 'Phalcon\Mvc\View\Engine\Php',
));