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 <andrei.m...@gmail.com> 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 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to