Image not showing in codeigniter 4 |
(11-06-2019, 12:19 AM)durairaj Wrote: <img src="<?=WRITEPATH.$value->avatar?>"> Hello try this I think it will help you get the image. It work for me PHP Code: <img src="<?php echo base_url('uploads/avatar/'.$value->avatar); ?>"> But I will prefer you use another location for you files since writable folder is temporal for files. Use some thing like PHP Code: <img src="<?php echo base_url('.public/uploads/images/users/'.$user->avatar);?>"> Instead of saving to the writable folder. I hope this will help you and others here |
Welcome Guest, Not a member yet? Register Sign In |