您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

41 行
812B

  1. <?php
  2. namespace frontend\components ;
  3. class MyView extends \yii\web\View {
  4. var $icon ;
  5. var $page_title ;
  6. var $subtitle ;
  7. public function setTitle($title, $icon = '') {
  8. $this->title = $title ;
  9. $this->page_title = $title ;
  10. $this->icon = $icon ;
  11. }
  12. public function getTitle() {
  13. return $this->title ;
  14. }
  15. public function setPageTitle($page_title) {
  16. $this->page_title = $page_title ;
  17. }
  18. public function getPageTitle() {
  19. return $this->page_title ;
  20. }
  21. public function setSubtitle($subtitle) {
  22. $this->subtitle = $subtitle ;
  23. }
  24. public function getSubtitle() {
  25. return $this->subtitle ;
  26. }
  27. public function getTitleIcon() {
  28. return $this->icon ;
  29. }
  30. }