Example #1
0
 /**
  * 接管子控制器的视图
  */
 protected function takeOverView(Controller $aChild, $sChildName = null)
 {
     if (!$sChildName) {
         $sChildName = $aChild->name();
     }
     $this->viewContainer()->add($aChild->mainView(), $sChildName, true);
     if ($this->viewContainer() != $this->mainView()) {
         $this->mainView()->add($aChild->mainView(), $sChildName, false);
     }
 }
Example #2
0
 /**
  * 接管子控制器的视图
  */
 protected function takeOverView(Controller $aChild, $sChildName = null)
 {
     $this->mainView()->add($aChild->mainView(), $sChildName ?: $aChild->name(), true);
 }