On Tue, Oct 13, 2009 at 2:17 PM, Josh K <joshkrae...@gmail.com> wrote: > > Thanks. That works. Would WWW_ROOT still work properly if I ever made > any changes to the .htaccess setup, moved my webroot directory, or > changed servers? I think all I would need to do in that case is to > set the correct path in app/webroot/index.php, rather than adjusting > file_get_contents in the controllers.
That's correct. That's the point of setting a constant. Unless you have a centralised location for the Cake libs (as in when you have many of your own virtual hosts) you probably shouldn't need to set WWW_ROOT with an absolute path. Rather you can use the existing dirname(etc.) scheme. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---