That should be 'url' not 'link' :P
I guess I need a coffee - sorry for spamming.

Here ->
http://book.cakephp.org/view/842/url

Cheers

Jacob

On Apr 25, 1:05 pm, jacmoe <[email protected]> wrote:
> Right, I forgot the answer:
> echo $html->link('TEST LINK', $html->url('/advances/forward', true));
>
> Pass 'true' in the link function, and it will be absolute.
> Off the top of my head, but try it.
>
> On Apr 25, 1:03 pm, jacmoe <[email protected]> wrote:
>
>
>
>
>
> > Er, what for?
>
> > And there's no way you can have a link like '/cake/css/
> > cake.generic.css' - it would be '/css/cake.generic.css'.
> > Are you creating all those links yourself?
>
> > On Apr 25, 6:59 am, Robert Popplewell <[email protected]> wrote:
>
> > > Does anyone know the best way to change all html links within cakephp
> > > to absolute URLs? (besides preg_replace)
>
> > > e.g.
>
> > > From:
>
> > > /cake/css/cake.generic.css
>
> > > To:
>
> > >http://myurl.com/cake/css/cake.generic.css
>
> > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelpothers 
> > > with their CakePHP related questions.
>
> > > You received this message because you are subscribed to the Google Groups 
> > > "CakePHP" 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 
> > > athttp://groups.google.com/group/cake-php?hl=en
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others 
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups 
> > "CakePHP" 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 
> > athttp://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" 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 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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