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 <jac...@mail.dk> 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 <r0b...@gmail.com> 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.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 cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com 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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment