firefly-iii/app/controllers/BaseController.php

31 lines
479 B
PHP
Raw Normal View History

2014-06-28 02:41:44 -05:00
<?php
2014-07-15 15:16:29 -05:00
/**
* Class BaseController
*/
class BaseController extends Controller
{
2014-06-28 02:41:44 -05:00
/**
*
*/
2014-08-28 00:53:54 -05:00
public function __construct()
{
\Event::fire('limits.check');
\Event::fire('piggybanks.check');
}
2014-08-28 00:53:54 -05:00
2014-07-15 15:16:29 -05:00
/**
* Setup the layout used by the controller.
*
* @return void
*/
protected function setupLayout()
{
if (!is_null($this->layout)) {
$this->layout = View::make($this->layout);
}
}
2014-06-28 02:41:44 -05:00
}