1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00
invoiceninja/app/controllers/BaseController.php

22 lines
371 B
PHP
Raw Normal View History

2013-11-26 13:45:07 +01:00
<?php
class BaseController extends Controller {
/**
* Setup the layout used by the controller.
*
* @return void
*/
protected function setupLayout()
{
if ( ! is_null($this->layout))
{
$this->layout = View::make($this->layout);
}
}
2013-12-03 18:32:33 +01:00
public function __construct()
{
2014-07-27 22:31:41 +02:00
$this->beforeFilter('csrf', array('on' => array('post', 'delete', 'put')));
2013-12-03 18:32:33 +01:00
}
2013-11-26 13:45:07 +01:00
}