Okay I found something that is better than my original approach; I figure I may as well post it here. There are globals for model paths, view paths and controller paths. You can set them in bootstrap.php then Cake will look these directories when loading models/controllers/ views. See the original bootstrap.php for instructions.
On 18 juin, 12:58, Jimmy Bourassa <[email protected]> wrote: > Hello, > > I am building a web application that will share data with another > CakePHP app (MySQL database). More specifically, I would like to share > some Models and maybe behaviors/helpers/components. Since the two app > has entierly different logic, I would like to create different > controllers and views. > > I am not entierly sure how I should build the structure of the > application. I think the easy way would be to create a new "app" > folder called "app2", create the files I would like to import (models > helpers etc.) and simply include the original file by specifing the > original path. That would probably work, but I don't feel this is the > best way. > > Any clue would be appreciated. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
