Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的控制器中有这些代码,它返回一个错误。
move_uploaded_file($this->request->data['FileUpload']['photo']['tmp_name'], WWW_ROOT.'/pictures/sample.jpg');
错误:
未定义的属性:FileUploadsController::$request 试图获取非对象的属性
未定义的属性:FileUploadsController::$request
试图获取非对象的属性
我不知道如何处理这种错误。任何帮助表示赞赏。
请先
move_upload_file
调试($this->request->data)