extends abstract class Phalcon\Di\Injectable
implements Phalcon\Events\EventsAwareInterface, Phalcon\Di\InjectionAwareInterface, Phalcon\Mvc\ViewBaseInterface
Source on GitHub
This component allows to render views without hierarchical levels
use Phalcon\Mvc\View\Simple as View;
$view = new View();
// Render a view
echo $view->render('templates/my-view', ['some' => $param]);
// Or with filename with extension
echo $view->render('templates/my-view.volt', ['parameter' => $here]