Mvc\View\Simple::setVar

public setVar (mixed $key, mixed $value) Set a single view parameter $this->view->setVar('products', $products);

Mvc\View\Simple::__get

public __get (mixed $key) Magic method to retrieve a variable passed to the view echo $this->view->products;

Mvc\View\Simple::__set

public __set (mixed $key, mixed $value) Magic method to pass variables to the views $this->view->products = $products;

Mvc\View\Simple::setViewsDir

public setViewsDir (mixed $viewsDir) Sets views directory. Depending of your platform, always add a trailing slash or backslash

Mvc\View\Simple::setVars

public setVars (array $params, [mixed $merge]) Set all the render params $this->view->setVars(['products' => $products]);

Nginx Installation Notes

Nginx is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. Unlike traditional servers, Nginx doesn’t rely on threads to handle requests. Instead it uses a much more scalable event-driven (asynchronous) architecture. This architecture uses small, but more importantly, predictable amounts of memory under load. The PHP-FPM (FastCGI Process Manager) is usually used to allow Nginx to process PHP files. Nowadays, PHP-FPM is bundled with any Uni

Mvc\View\Simple::setCacheOptions

public setCacheOptions (array $options) Sets the cache options

Mvc\View\Simple::getViewsDir

public getViewsDir () Gets views directory

Mvc\View\Simple::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\Simple::render

public render (string $path, [array $params]) Renders a view