Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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?



17.4k
Accepted
answer

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

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