I have recently change from version 1.19 to 1.2 and I start to have
problems with routes. I note something odd when Cake thinks that my
webroot directory is a controller.
I have the following dir configuration (that works fine in cake 1.19)
site-->www-->app-->myApp
site->www-->cake
site->www->webroot->index.php
I have checked the path in the index.php and everithing is fine. But
when I try to link to my css and images the webroot var is set to /
site/www/ instead of /site/www/webroot/
I do a litle bit o research and find the problem in the Dispatcher
class, because the method baseUrl was setting wrong my webroot
directory. So I comment the lines 414 to 424, because after that
lines the webroot is set with the value of base dir wich value at that
moment is wrong
<pre><code>
if ($webroot === 'webroot' && $webroot === basename($base)) {
$base = dirname($base);
}
if ($dir === 'app' && $dir ===
basename($base)) {
$base = dirname($base);
}
if (in_array($base, array(DS, '.'))) {
$base = '';
}
</code>
</pre>
someone else is having the same trouble?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---