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

33 lines
598 B
PHP

<?php
namespace App\Controller;
use Phalcon\Mvc\Controller;
/**
* @property \Httpcb\Auth $auth
*
* Class ControllerBase
* @package App\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 App\Auth\Auth
*/
protected function _getAuth()
{
return $this->di->get('auth');
}
}