I have my CakePHP site installed at /websites/cakephp, and the root of
my website (htdocs) is /. I have a .htaccess file in / that rewrites
all requests from / to /websites/cakephp. So, if you go to the root of
my website, you see the contents of /websites/cakephp and the address
bar shows /. That works fine.

However, when I use methods in the HTML Helper (like $html->link()), I
get paths like /websites/cakephp/controller/action, but I want paths
like /controller/action. If I manually type http://mysite/controller/action,
it works fine because of my .htaccess file, so I know this will work
if I can get the HTML Helper to give me paths I want. Any idea on how
to change the base? I went into cake/libs/view/html.php and changed
var $base = null; to var $base = '/'; but that didn't seem to do
anything.


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