public function getViewPath() { $isTouch = $this->_isTouchLayout(); if (!$isTouch) { $wapView = _APP_PATH_ . "/protected/views/wap/" . $this->getId(); return $wapView; $action = $this->getAction()->getId(); if (file_exists($wapView . DS . $action . ".php")) { return $wapView; } } return parent::getViewPath(); }
public function testEmptyGetViewPath() { $ctr = new Controller(); $ctr->init(); $this->assertFalse($ctr->getViewPath()); }