initial commit
This commit is contained in:
commit
e869a1cab4
107 changed files with 9029 additions and 0 deletions
25
app/controllers/ControllerBase.php
Normal file
25
app/controllers/ControllerBase.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in a new issue