Archived
1
0
Fork 0
This repository has been archived on 2026-04-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
httpcb/app/controllers/ControllerBase.php
2017-09-01 17:10:27 +02:00

25 lines
473 B
PHP

<?php
use Phalcon\Mvc\Controller;
class ControllerBase extends Controller
{
/**
* Helper method to forward to the 404 - file not found page.
*/
protected function _forward404()
{
$this->dispatcher->forward(array(
'controller' => 'error',
'action' => 'show404'
));
}
/**
* @return Auth\Auth
*/
protected function _getAuth()
{
return $this->di->get('auth');
}
}