I had similiar problems. So I started to develop nearly everything as a plugin. If your code is based on generic programmed plugins you can share the models as you wish between them. You can also easily configure each plugin itself by using the PluginHandler Component from the bakery.cakephp.org
It'´s not the direct solution to your problem but an alternative maybe :-) On 11 Okt., 02:59, "Dave Maharaj" <[email protected]> wrote: > That gave me an error Undefined offset [0]. > > Maybe I was unclear when I originally asked, so maybe try again. I need my > User model in app/models to be shared with the plugin. > I could move User and make MemberUser model in plugin folder but then > sharing Country model? User right now belongs to Country no big deal but > Country is used in various places over the site so can UserMember access > Country if moved? > > I have as I said a registrations, passwords, users, confirmations > controllers right now all using User (they do not have a table since its all > User data) but I hate having everything all bunched in with the other > controller so I wanted to dump it all into a plugin folder. > > Thanks again-----Original Message----- > From: Miles J [mailto:[email protected]] > Sent: October-08-10 6:46 PM > To: CakePHP > Subject: Re: Plug-in Models > > That is how you use it. If you want to use plugin models within a > plugin, you must define the plugin. > > public $uses = array('User' => array('className' => 'Member.User')); Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
