problem with image after upload , dosent display |
Hi guys
I`m having problem with showing image after it upload successfully , on local host everything works fine , but when i upload my code to test it online i`m facing this problem . after my upload image or delete image success i set flash data for message and redirect with refresh method to show the image or place holder if its empty. (as i said it working like charm on local) But on server it needs several refreshesh or even ctrl F5 for image to take place . controller : Code: public function do_upload(){ View : Code: <div>
(01-11-2015, 10:01 AM)shariaty Wrote: Hi guys i cant find the object "$user" from which user are accessing the "img" in the do_upload controller i expected to see something like this: $data['user] = something $this->load->view('your view',$data); This way, the "user" object will be passed directly to the view by the controller "do_upload" and you can access the "img" property from the "user" object when you "redirect" to another controller, which has no reference of $data['user'], then you wont be able to access the properties $user. unless you set "user" object in session userdata |
Welcome Guest, Not a member yet? Register Sign In |