PHP Error

require() [<a href='function.require'>function.require</a>]: Filename cannot be empty

/home/web_v2/libs/yii/web/CBaseController.php(118)

106      * @param boolean $_return_ whether the rendering result should be returned as a string
107      * @return string the rendering result. Null if the rendering result is not required.
108      */
109     public function renderInternal($_viewFile_, $_data_=null, $_return_=false) {
110         // we use special variable names here to avoid conflict when extracting data
111         if (is_array($_data_))
112             extract($_data_, EXTR_PREFIX_SAME, 'data');
113         else
114             $data=$_data_;
115         if ($_return_) {
116             ob_start();
117             ob_implicit_flush(false);
118             require($_viewFile_);
119             return ob_get_clean();
120         }
121         else
122             require($_viewFile_);
123     }
124 
125     /**
126      *
127      * @param type $data 
128      */
129     public function objectToArray($data) {
130         if (is_array($data)) {

Stack Trace

#2
+
 /home/web_v2/qudao_v3/protected/controllers/HotController.php(134): CBaseController->renderFile(false, array("hotinfo" => array(array("hid" => "91", "title" => "实体小店取亮名的妙招", "dir" => "shop-name", "tplname" => "shop-name.html", ...)), "yiwang" => array(array("hid" => "90", "title" => "秋季女装进货必看", "dir" => "women-fall", "tplname" => "women-fall.html", ...), array("hid" => "89", "title" => "车企与经销商关系聚变!", "dir" => "car-mufctr-and-dler", "tplname" => "car-mufctr-and-dler.html", ...), array("hid" => "88", "title" => "超级“店王”亮相的背后", "dir" => "super-shop", "tplname" => "super-shop.html", ...), array("hid" => "87", "title" => "美容院选址的秘密", "dir" => "beauty-location-secr", "tplname" => "beauty-location-secret.html", ...), ...)), true)
129         }
130 
131         //取得模板路径
132         $tempPathStr = Yii::getPathOfAlias("application") . '/../web/hot/templates/' . $data['hotinfo'][0]['dir'] . "/" . $data['hotinfo'][0]['tplname'];
133         $tempContent = realpath($tempPathStr);
134         $html = $this->renderFile($tempContent, $data, true);
135         echo $html;
136     }
137 
138     /**
139      * 专题聚合页
#10
+
 /home/web_v2/qudao_v3/web/index_master.php(87): CApplication->run()
82 $yii = "yii/yii.php";
83 
84 
85 //加载框架引导文件,创建并运行webApplication
86 require_once($yii);
87 Yii::createWebApplication($configfile)->run();
2016-08-23 09:23:28 nginx Yii Framework/1.1.7