This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Phalcon\Mvc\View; | |
$di = new \Phalcon\Di\FactoryDefault(); | |
$di->set('view',function(){ | |
$view=new \Phalcon\Mvc\View\Simple; | |
$view->registerEngines([ | |
'.volt'=>'Phalcon\Mvc\View\Engine\Volt' // this will produce error beacause it will be passed here as string https://github.com/phalcon/cphalcon/blob/2.1.x/phalcon/di.zep#L235(name parameter) | |
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
povp88529lii8ltdsshbdgtkb3 |