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.

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?



38.6k
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:

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