Try setting them on your app/config/bootstrap.php like so: $modelPaths = array ( '/some/other/path/models' // Custom );
// Standard model path is added automatically by Configure:: __buildModelPaths() You get this by looking at: 1. cake/basics.php - loadModels() has this: $path = Configure::getInstance(); // ... foreach($path->modelPaths as $path) { // ... } 2. cake/libs/configure.php - __loadBootstrap() has this: $modelPaths = null; // ... require APP_PATH . 'config' . DS . 'bootstrap.php'; // ... $_this->__buildModelPaths($modelPaths); -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: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de Max Enviado el: Viernes, 23 de Febrero de 2007 12:39 a.m. Para: Cake PHP Asunto: Multiple Paths for Models/Views/Controllers in paths.php I've been trying to write up more complex applications with Cake. However, I'm stuck at a place... I want Cake to load models/views/ controllers from multiple directories since the main application is divided in various modules which are being developed individually... Any ideas will be appreciated... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---