hi cwsTrummer

in your views, you can use $this->webroot, which will give the
"absolute" path of your webroot dir, and will work wherever you are.
then you can use something like that:
src="<? echo $this->webroot ?>/flash/yourflash.swf"

+++++++
clemos

On 12/6/06, cwsTrummer <[EMAIL PROTECTED]> wrote:
>
> hello
>
> i have the following problem
> when somebody uses my application there can be
> 1. localhost/Project
> 2. localhost/Project/index.php
> 3. localhost/Project/index.php/
>
> i use flash in my sites so i have to inlcude it like the following
> src="../app/webroot/flash/myflash..."
>
> when the 3. url is in the browser
> but when the browser uses the first or second url i have to use
> src="app/webroot...."
>
> how can i be sure which url is used??
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
 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