i am trying to upload image in my application in which data is go to the database table(tbl_image)and not reach the images in this path "C:/xampp/htdocs/new/images.i think some problem to reach appropriate place using (saveAs()).
i have found error that is:
object(CUploadedFile)[58]
private ‘_name’ => string ‘ajit.jpg’ (length=
private ‘_tempName’ => string ‘C:\xampp\tmp\php4896.tmp’ (length=24)
private ‘_type’ => string ‘image/jpeg’ (length=10)
private ‘_size’ => int 11914
private ‘_error’ => int 0
private ‘_e’ (CComponent) => null
private ‘_m’ (CComponent) => null
( ! ) Fatal error: Call to a member function saveAs() on a non-object in C:\xampp\htdocs\notjustprice\protected\controllers\ImageController.php on line 106
Call Stack
Time Memory Function Location
1 0.0041 141168 {main}( ) …\index.php:0
2 0.0809 1101824 CApplication->run( ) …\index.php:13
3 0.0809 1101920 CWebApplication->processRequest( ) …\CApplication.php:162
…
i tried very much after that i am not able to reach my goal…
Any help is appreciated.
Thanks a lot for the support me…
my models,view,controller files are…