public function addFrameView(IView $aFrameView) { if ($aOrController = $aFrameView->controller()) { $aOrController->removeView($aFrameView); } $aFrameView->setController($this); $this->viewContainer()->add($aFrameView); $this->setViewContainer($aFrameView); }
public function addView(IView $aView, $sName = null) { if ($aOrController = $aView->controller()) { $aOrController->removeView($aView); } $aView->setController($this); return $this->mainView()->add($aView, $sName, true); }