invoiceninja/app/controllers/BaseController.php

22 lines
427 B
PHP
Raw Normal View History

2013-11-26 14:45:07 +02:00
<?php
2015-01-11 14:30:08 +02:00
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-11-26 14:45:07 +02:00
2015-01-11 14:30:08 +02:00
public function __construct()
{
$this->beforeFilter('csrf', array('on' => array('post', 'delete', 'put')));
}
}