"Er, what for?"

Because I prefer to use absolute URLs :P

"And there's no way you can have a link like '/cake/css/cake.generic.css'"

Obviously you can if your working within a folder named 'cake', I just
pasted a random href link in there from my test setup for an example.

Thanks for the heads up on the url method argument, must have been a lack of
coffee that made me forget to check the api for that too :)


On 25 April 2010 12:03, 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.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+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@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+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For
>  more options, visit this group at
> http://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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to