BaseController.php 255 B

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