PHP notice

Undefined index: content

/home/khacdaubienhoa/public_html/protected/modules/products/controllers/DefaultController.php(101)

089         
090         $model_class = ucfirst($this->module->id);
091         $model = new $model_class;
092         
093         $this->render('search', $model->getSearch(Yii::app()->request));
094     }
095     
096     
097     public function actionOrder($id) {
098         $this->setLayout();
099         $id = ProductsLanguage::model()->getIDByTag($id);
100         $content_order = "";
101         $content_order = $_POST['content'];
102         $image = "";
103         if(isset($_FILES['fileToUpload']["name"])){
104             $show = 0;
105             $target_dir = "public/userfiles/data_customer/";
106             $uploadOk = 1;
107             $imageFileType = pathinfo($_FILES["fileToUpload"]["name"],PATHINFO_EXTENSION);
108             $name = time().".".$imageFileType;
109             $target_file = $target_dir . $name;
110             
111             // Allow certain file formats
112             if($imageFileType != "jpg" and $imageFileType != "png" and $imageFileType != "gif" and $imageFileType != "bmp" and $imageFileType != "") {
113                 $msg = "Chỉ được tải lên file có định dạng là jpg,gif,png,bmp";

Stack Trace

#9
+
 /home/khacdaubienhoa/public_html/index.php(11): CApplication->run()
06 defined('YII_DEBUG') or define('YII_DEBUG', true);
07 // specify how many levels of call stack should be shown in each log message
08 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
09 
10 require_once('framework/yiilite.php');
11 Yii::createWebApplication($config)->run();
2024-03-28 20:44:09 Apache Yii Framework/1.1.14