Fixed this by adding the following line to the webroot/index.php file:
define('WEBROOT_DIR','userapp');On Jun 18, 2:28 pm, imaginaryboy <[EMAIL PROTECTED]> wrote: > Ok so I'm trying to get this going in a custom setup and am so far > managing to get completely incorrect results because I can't get > "$this->webroot" in a view to end up with what I need. > > The installation setup is like this on an Ubuntu box. > > The core cake files are in: /var/www/cake_1.1.15.5144/ > Apache's document root is: /var/www/default_webroot/ > Within /var/www/default_webroot/ there's a symbolic link to a folder > in a user's home folder like this: > /var/www/default_webroot/usersapp -> /home/someuser/projects/cakeapp/ > webroot > > The whole "app" structure (config, controllers, webroot, etc) is in / > home/someuser/projects/cakeapp > > Browsing tohttp://localhost/userappdoes in fact get me the lovely > "Cake PHP Rapid Development" default template for a new app, but the > CSS references all start with "/css" and not "/userapp/css" as I would > like. > > I've tried removing all the various .htaccess files and setting > BASE_URL in the userapp's core.php to no avail. That results in the > CSS references starting with "/userapp/cakeapp/webroot/css" regardless > of what value I set BASE_URL to ... just value is 100% ignored, I can > set it to "this-is-some-random-crap" and I'll still end up with the > aforementioned prefix. > > I'm sure there's something ridiculously simple that I'm just not > figuring out, but it would be pretty useful if I could get this to > work properly. > > Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
