Mvc\View\Simple

Class Phalcon\Mvc\View\Simple

extends abstract class Phalcon\DI\Injectable

implements Phalcon\Events\EventsAwareInterface, Phalcon\DI\InjectionAwareInterface

This component allows to render views without hicherquical levels

$view = new Phalcon\Mvc\View\Simple();
 echo $view->render('templates/my-view', array('content' => $html));

Methods

public __construct ([array $options])

Phalcon\Mvc\View constructor

public setViewsDir