You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?php
-
- namespace common\components ;
-
- class MyView extends \yii\web\View {
-
- var $icon ;
- var $page_title ;
- var $subtitle ;
-
- public function setTitle($title, $icon = '') {
- $this->title = $title ;
- $this->page_title = $title ;
- $this->icon = $icon ;
- }
-
- public function getTitle() {
- return $this->title ;
- }
-
- public function setPageTitle($page_title) {
- $this->page_title = $page_title ;
- }
-
- public function getPageTitle() {
- return $this->page_title ;
- }
-
- public function setSubtitle($subtitle) {
- $this->subtitle = $subtitle ;
- }
-
- public function getSubtitle() {
- return $this->subtitle ;
- }
-
- public function getTitleIcon() {
- return $this->icon ;
- }
-
- public function getControllerAction() {
- return Yii::$app->controller->id.'/'.Yii::$app->controller->action->id ;
- }
-
- }
|