public function mux() { $view = new VRent(); switch ($view->getTask()) { case 'rent': return $this->rent(); } }
public function mux() { $VRent = new VRent(); switch ($VRent->getTask()) { case 'map': $this->getMap(); break; case 'rent': $this->rent(); break; } }