blob: 66c365826eba0fa60c3dbab974bdd1a6bf3c9a3f [file] [log] [blame]
<?php
class BaseController extends Controller {
/**
* Setup the layout used by the controller.
*
* @return void
*/
protected function setupLayout()
{
//Theme gets set baesd on the one chosen in pga_config. default is basic.
$themeName = Config::get('pga_config.portal')['theme'];
$portalTitle = Config::get('pga_config.portal')['portal-title'];
//$theme = Theme::uses( $themeName);
Session::put( "theme", $themeName);
Session::put( "portal-title", $portalTitle);
if ( ! is_null($this->layout))
{
$this->layout = View::make($this->layout);
}
}
}