Thursday, April 30, 2009

Re: Possible very-low-danger bug in view.php (cake core)

There is no check, you are supposed to define $fooPaths variables
correctly. No trailing slash == not correct :)

-Mark

On Apr 29, 10:04 am, Ernesto <e.fanz...@gmail.com> wrote:
> Hello.
>
> here's my bootstrap.php.
>
> if (!defined("SHARED_ITEMS_FOLDER")) {
>         define("SHARED_ITEMS_FOLDER", CAKE_CORE_INCLUDE_PATH . DS ."shared
> items");
>
> }
>
> $modelPaths = array(SHARED_ITEMS_FOLDER ."models");
>
> $viewPaths = array(SHARED_ITEMS_FOLDER ."views");
>
> Please note that i forgot the trailing directory separator.
>
> - Shared models are working.
> - shared views aren't.
>
> maybe there's no trailing DS check in view.php?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

No comments: