Skip to content

Instantly share code, notes, and snippets.

@Sankame
Created July 21, 2014 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sankame/fa1b2701da0e48c1a939 to your computer and use it in GitHub Desktop.
Save Sankame/fa1b2701da0e48c1a939 to your computer and use it in GitHub Desktop.
<?php
class BaseController extends Controller {
public $layout='layout';
/**
* Setup the layout used by the controller.
*
* @return void
*/
protected function setupLayout()
{
if ( ! is_null($this->layout))
{
$this->layout = View::make($this->layout);
}
}
/** Base URL 取得*/
public static function getBaseUrl() {
return Config::get('app.url');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment