for the record... in bootstrap.php, you can use
$modelPaths
$viewPaths
$controllerPaths
$helperPaths
$componentPaths
$behaviorPaths
To add one or more paths to be looked up.
I've submitted a patch (dams simple) to add additional paths for
vendors (so that a vendor be reused across multiple projects) and I
have the weird feeling it's going to fall through the cracks! So
anyway!
The future will tell us!
On Feb 23, 2:58 pm, "Mariano Iglesias" <[EMAIL PROTECTED]>
wrote:
> Regarding point 1 below: I was looking at loadModels(), but loadModel() has
> the same:
>
> function loadModel($name = null) {
> // ...
>
> if (!is_null($name) && !class_exists($name)) {
> $name = Inflector::underscore($name);
> $paths = Configure::getInstance();
>
> foreach($paths->modelPaths as $path) {
> if (file_exists($path . $name . '.php')) {
> // ...
> }
> }
> }
>
> }
>
> -MI
>
> ---------------------------------------------------------------------------
>
> Remember, smart coders answer ten questions for every question they ask.
> So be smart, be cool, and share your knowledge.
>
> BAKE ON!
>
> blog:http://www.MarianoIglesias.com.ar
>
> -----Mensaje original-----
> De: Mariano Iglesias [mailto:[EMAIL PROTECTED]
> Enviado el: Viernes, 23 de Febrero de 2007 12:54 a.m.
> Para: '[email protected]'
> Asunto: RE: Multiple Paths for Models/Views/Controllers in paths.php
>
> 1. cake/basics.php - loadModels() has this:
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---