Tuesday, April 27, 2010

Root prepended to the URL on shared host

Hi,

I am having probs with an app on shared hosting. Everytime i try and
run a url through a cake helper it prepends the full root of the app
to it.

For example -

echo $html->link('link' ,'/foo/bar');

comes back as

<a href="/websites/ ..../public_html/webroot/foo/bar">link</a

Any ideas on why this may be? works fine locally.

Thanks for your help.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate