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::__set

public __set (mixed $key, mixed $value) Magic method to pass variables to the views $this->view->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::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]);

Mvc\View\Simple::setVar

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

Mvc\View\Simple::setParamToView

public setParamToView (mixed $key, mixed $value) Adds parameters to views (alias of setVar) $this->view->setParamToView('products', $products);

Mvc\View\Simple::setContent

public setContent (mixed $content) Externally sets the view content $this->view->setContent("<h1>hello</h1>");

Mvc\View\Simple::setCacheOptions

public setCacheOptions (array $options) Sets the cache options

Mvc\View\Simple::render

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