Re: Best Practices for multiple cake apps sharing tables?
make a plugin maybe ? On Oct 15, 7:15 pm, comb [EMAIL PROTECTED] wrote: For example, I would like to build one app to manage the users and groups for all my other apps. Single sign on if you will. --- How do I name tables? I've noticed I run into trouble attempting to use tablePrefixes in either project, particularly with HABTM joinTables: master_groups master_groups_users master_users project1_stuff project1_thingers Accessing the groups+users relationship and join table is problematic. But maybe that's because I'm trying to create models in the project app too. --- What's the best strategy for not repeating work? So far, I've tried re-creating the User and Group model in the project, but that has problems mentioned above. Aside from the table naming, do I need to also redefine all the methods I already wrote in the Master User/Group app? Is this something that I need to wrap into a behavior of some sort? --- I've tried explicitly defining my join tables, but from within Project1, cake tries to attach the Project1_ prefix to the groups_users join table. Even when I specify the table name in the habtm relationship, it still appends the prefix. The hack as I see it is to just explicitly define each table, but that feels very un-cake-like and hackish. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Best Practices for multiple cake apps sharing tables?
I looked at the plugin docs again and it wasn't clear whether I would be able to create relationships between the main app and models from the plugin and that's what I'm looking for. e.g. Users + Posts, etc In my work environment, I am looking to establish common master apps (like User Group management, higher level reporting functionality, etc) for use within other cake apps as well as possibly non-cake apps which I can slightly adapt. Aside from creating One Monster Application (eww), what are my options? Just plug ins? I'm devouring books and articles but haven't come across something that addressed it or provided a solution --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Best Practices for multiple cake apps sharing tables?
Plugins with customised bootstrap - your going to go deep on this eg more devouring of info (like Johnny no5 from shortcircuit) :) http://manual.cakephp.org/view/35/Advanced-Installation http://groups.google.com/group/cake-php/browse_thread/thread/74484afe7da5c1f0 looking at wildflowers plugin branch on google code might help 2008/10/16 comb [EMAIL PROTECTED] I looked at the plugin docs again and it wasn't clear whether I would be able to create relationships between the main app and models from the plugin and that's what I'm looking for. e.g. Users + Posts, etc In my work environment, I am looking to establish common master apps (like User Group management, higher level reporting functionality, etc) for use within other cake apps as well as possibly non-cake apps which I can slightly adapt. Aside from creating One Monster Application (eww), what are my options? Just plug ins? I'm devouring books and articles but haven't come across something that addressed it or provided a solution --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---