Controller.php 811 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Controller is the customized base controller class.
  4. * All controller classes for this application should extend from this base class.
  5. */
  6. class Controller extends CController
  7. {
  8. /**
  9. * @var string the default layout for the controller view. Defaults to '//layouts/column1',
  10. * meaning using a single column layout. See 'protected/views/layouts/column1.php'.
  11. */
  12. public $layout='//layouts/column1';
  13. /**
  14. * @var array context menu items. This property will be assigned to {@link CMenu::items}.
  15. */
  16. public $menu=array();
  17. /**
  18. * @var array the breadcrumbs of the current page. The value of this property will
  19. * be assigned to {@link CBreadcrumbs::links}. Please refer to {@link CBreadcrumbs::links}
  20. * for more details on how to specify this property.
  21. */
  22. public $breadcrumbs=array();
  23. }