Monday, April 1, 2013

RE: html helper - image outside of webroot/img dir

Check CKEditor config settings for the folder to save files to and point it to img/uploads or what not and refer as $this->Html->image('uploads/' . $file) something along those lines. But if it’s a CK image from the editor package itself  just reference it as the correct path/filename

 

From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Robert Gravel
Sent: Monday, April 01, 2013 10:42 PM
To: cake-php@googlegroups.com
Subject: html helper - image outside of webroot/img dir

 

Hi,
I need to display an image outside the webroot/img  dir for cake 1.3. Specifically I have to link to an image in the ckeditor which is at webroot/js/ckeditor...

When I use $this->Html->image() it gives me a reference at webroot/img by default. Is there a solution that is portable between localhost   and server

Thanks
Rob G

--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: