1: <?php 2: 3: class BaseController extends Controller { 4: 5: /** 6: * Setup the layout used by the controller. 7: * 8: * @return void 9: */ 10: protected function setupLayout() 11: { 12: if ( ! is_null($this->layout)) 13: { 14: $this->layout = View::make($this->layout); 15: } 16: } 17: 18: } 19: