Example #1
0
 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();
 }
Example #2
0
 public function testEmptyGetViewPath()
 {
     $ctr = new Controller();
     $ctr->init();
     $this->assertFalse($ctr->getViewPath());
 }