Phalcon cheat sheet
Page content
Disable view
$this->view->disable();
Change main view
$this->view->setMainView('public');
Set headears
$this->response->setContentType('text/plain')->sendHeaders();
Links to documentation
404 on Micro application
$app->notFound(
function () use ($app) {
$app->response->setStatusCode(404, "Not Found")->sendHeaders();
echo 'This is crazy, but this page was not found!';
}
);