Mvc\View::setBasePath

public setBasePath (mixed $basePath) Sets base path. Depending of your platform, always add a trailing slash or backslash $view->setBasePath(__DIR__ . '/');

Mvc\View::reset

public reset () Resets the view component to its factory default values

Mvc\View::render

public render (string $controllerName, string $actionName, [array $params]) Executes render process from dispatching data // Shows recent posts view (app/views/posts/recent.phtml) $view->start()->render('posts', 'recent')->finish();

Mvc\View::registerEngines

public registerEngines (array $engines) Register templating engines $this->view->registerEngines([ '.phtml' => 'Phalcon\Mvc\View\Engine\Php', '.volt' => 'Phalcon\Mvc\View\Engine\Volt', '.mhtml' => 'MyCustomEngine' ]);

Mvc\View::pick

public pick (mixed $renderView) Choose a different view to render instead of last-controller/last-action use Phalcon\Mvc\Controller; class ProductsController extends Controller { public function saveAction() { // Do some save stuff... // Then show the list view $this->view->pick("products/list"); } }

Mvc\View::partial

public partial (mixed $partialPath, [mixed $params]) Renders a partial view // Show a partial inside another view $this->partial('shared/footer'); // Show a partial inside another view with parameters $this->partial('shared/footer', ['content' => $html]);

Mvc\View::LEVEL_NO_RENDER

integer LEVEL_NO_RENDER

Mvc\View::LEVEL_MAIN_LAYOUT

integer LEVEL_MAIN_LAYOUT

Mvc\View::LEVEL_LAYOUT

integer LEVEL_LAYOUT

Mvc\View::LEVEL_BEFORE_TEMPLATE

integer LEVEL_BEFORE_TEMPLATE