Your should rename model.

On Jun 16, 7:39 pm, Andrei Mita <[email protected]> wrote:
> How can I rename the E-mail component?
>
>
>
> On Wed, Jun 16, 2010 at 3:26 PM, jodator <[email protected]> wrote:
> > I had the same issue ;) Fastest: rename model or component.
>
> > Or you could try use email model in controller like this (I havn't
> > tested it before):
>
> > $uses = array('MyOtherModel');
>
> > ...
> > function mail_me($id) {
> > $emailModel = ClassRegistry::init('Model');
> > $emailField = $emailModel->find('email', array('id' => 666) );
>
> > // or
>
> > $emailField = ClassRegistry::init('Model')->find('email', array('id'
> > => 666) );
>
> > $this->email->to = emailField;
>
> > //I don't know how to dinamically load components
>
> > }
>
> > On Jun 16, 1:20 pm, Andrei Mita <[email protected]> wrote:
> > > Hello,
>
> > > I have a model Email that conflicts with the component when I try to send
> > > emails. I have researched the group and saw that other people had the
> > same
> > > issue but did not find a solution. Is there a standard way to deal with
> > the
> > > problem or do I have to rename my model, controller and view folder?
>
> > > Thanks,
> > > Andrei
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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]<cake-php%[email protected] 
> > om>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