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

Implement .html to views service

I often use .html for angularJS but phalcon only support some extensions like .volt, .php and .phtml. How do i implement .html to views service anyway?



40.0k
Accepted
answer

you mean engines: volt, php ... this can help you:

view->registerEngines([
        '.html' => 'Phalcon\Mvc\View\Engine\Php'
]);