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" => "73", "title" => "8小时之外的精彩人生", "dir" => "jianzhi", "tplname" => "jianzhi.html", ...)), "yiwang" => array(array("hid" => "72", "title" => "节能市场创业投资优选", "dir" => "energy-saving", "tplname" => "energy-saving.html", ...), array("hid" => "71", "title" => "室内排毒 亿万家庭在期待", "dir" => "shineipaidu", "tplname" => "shineipaidu.html", ...), array("hid" => "70", "title" => "投资早餐 找到创业落点 ", "dir" => "breakfast", "tplname" => "breakfast.html", ...), array("hid" => "69", "title" => "迎六一儿童商品勇往直钱", "dir" => "children", "tplname" => "children.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:24:12 nginx Yii Framework/1.1.7