Thanks!

Will give it a go.

Dave

-----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'));

On Oct 7, 6:46 pm, "Dave Maharaj" <[email protected]> wrote:
> I have various controllers such as confirmations, passwords, members that
I
> would like to package as a plugin to keep them in 1 spot. So going thru
the
> cookbook it mentions nothing about using existing models within a plugin.
>
> My Member plugin will use the regular User model. How can this be done?
>
> <?php class MemberConfirmation extends MemberAppModel {
>
>                 var $name = 'MemberConfirmation';
>
> var $uses = array('User');
>
> }
>
> ?>
>
> Something like that?
>
> Any insight would be great. First attempt so bare with me.
>
> Thanks,
>
> Dave

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

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

Reply via email to