Thursday, April 17, 2014

Image is not displaying

Hi to All,

I have been trying to display the images after they have been uploaded using $this->Html->image(). It provides the right path to the image but the image is not showing. mod_rewrite is working fine, and no error seems to occur. I tried displaying the image directly from the web browser with the link provided in the image path, it gives me the following error:

Missing Controller
Error: ImgController could not be found.
Error: Create the class ImgController below in file: app\Controller\ImgController.php

Image location is on default location 'img'. I tried Googling for an hour already with no working result. I am using version 2.4.7 if that helps things sort out.

Thanks,
Andrew

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: