Never mind. Found the solution right after I posted (of course :) ).

This works:

<?php echo $html->url('/files/logo.swf'); ?>

On Jun 24, 3:25 pm, jhicks <[EMAIL PROTECTED]> wrote:
> I've got a flashfilethat I want toincludeon all pages of a site so
> I'm trying toincludeit in the layout (default.ctp). I need to set
> the param value where name = movie and the src value under the embed
> tag to the path of the actualswfflashfile. I can't for the life of
> me figure out how to do this so that it is always in reference to the
> webroot. If I try and just set this value statically it will work for
> some directories but not for others. For example my app is located at
>
> http://localhost/cake/tasks
>
> I set up a dummy view called template at
>
> http://localhost/cake/tasks/template
>
> If I put theswfflashfilein the files folder under webroot (webroot/
> files/logo.swf) and I set the url path statically (to files/logo.swf)
> then I can get it to show up on the tasks page, but it won't show up
> if I try and go to the template view. (I do also have an index view.)
>
> Anybody shed some light on what I can do?
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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