To be shure to point to correct url if you have inner path 
from webroot or if you move your you can use this tip 
(so if images are correctly referenced even swf will be):

If swf/ and img/ are at the same level use:
$pathToSwf = $html->image('../swf/theFileIsHere.swf');

Or you simply put your swf under img (img/swf) and then reference files as:
$pathToSwf = $html->image('swf/theFileIsHere.swf');

> -----Messaggio originale-----
> Da: [email protected] 
> [mailto:[EMAIL PROTECTED] Per conto di Samuel DeVore
> Inviato: sabato 21 aprile 2007 6.20
> A: [email protected]
> Oggetto: Re: when I create my own layout file ,where to put 
> all the related pics and swfs?
> 
> /swf/theFileIsHere.swf
> 
> On 4/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > what about swf,if I put it in webroot/swf ,how can I reference the 
> > file?
> >
> > On 4月20日, 下午11时38分, gerbenzomp <[EMAIL PROTECTED]> wrote:
> > > Images are best put in the "img" folder in the webroot, 
> because this 
> > > way you can use Cake's built in html helper:
> > >
> > > $html->image('myimage.jpg');
> > >
> > > > what is the webroot dir for? when and what to put into this dir?
> > >
> > > The webroot is meant for all external files your layout uses, so 
> > > images, css, javascripts, etc.
> > >
> > > Gerben.
> > >
> > > On 20 apr, 17:21, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> > >
> > > > when I create my own layout file ,where to put all the related 
> > > > pics and swfs?my layout file is in cake\app\views\layouts
> > >
> > > > what is the webroot dir for? when and what to put into this dir?
> >
> >
> > >
> >
> 
> 
> --
> (the old fart) the advice is free, the lack of crankiness 
> will cost you
> 
> - its a fine line between a real question and an idiot
> 
> http://blog.samdevore.com/archives/2007/03/05/when-open-source
> -bugs-me/
> 
> > 
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to