html helper - image outside of webroot/img dir

2013-04-01 Thread Robert Gravel
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+unsubscr...@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.




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

2013-04-01 Thread Advantage+
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+unsubscr...@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.
 
 

-- 
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+unsubscr...@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.




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

2013-04-01 Thread Robert Gravel
Thanks. Got it

On Monday, April 1, 2013 9:27:12 PM UTC-4, advantage+ wrote:

 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...@googlegroups.com javascript: [mailto:
 cake...@googlegroups.com javascript:] *On Behalf Of *Robert Gravel
 *Sent:* Monday, April 01, 2013 10:42 PM
 *To:* cake...@googlegroups.com javascript:
 *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+u...@googlegroups.com javascript:.
 To post to this group, send email to cake...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/cake-php?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  


-- 
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+unsubscr...@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.




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

2013-04-01 Thread Advantage+
No problem. Hope it helped. No expert but seems pretty straight forward so
glad I could help in any way.

 

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

 

Thanks. Got it

On Monday, April 1, 2013 9:27:12 PM UTC-4, advantage+ wrote:

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...@googlegroups.com javascript:
[mailto:cake...@googlegroups.com javascript: ] On Behalf Of Robert Gravel
Sent: Monday, April 01, 2013 10:42 PM
To: cake...@googlegroups.com javascript: 
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+u...@googlegroups.com javascript: .
To post to this group, send email to cake...@googlegroups.com javascript:
.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

-- 
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+unsubscr...@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.
 
 

-- 
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+unsubscr...@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.