Re: Email Component and Model
Thanks. Will do. On Wed, Jun 16, 2010 at 5:21 PM, Dr. Loboto wrote: > Your should rename model. > > On Jun 16, 7:39 pm, Andrei Mita wrote: > > How can I rename the E-mail component? > > > > > > > > On Wed, Jun 16, 2010 at 3:26 PM, jodator 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 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 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 > > 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.comFor > 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 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
Re: Email Component and Model
Your should rename model. On Jun 16, 7:39 pm, Andrei Mita wrote: > How can I rename the E-mail component? > > > > On Wed, Jun 16, 2010 at 3:26 PM, jodator 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 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 cake-php@googlegroups.com > > To unsubscribe from this group, send email to > > cake-php+unsubscr...@googlegroups.com > 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 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
Re: Email Component and Model
How can I rename the E-mail component? On Wed, Jun 16, 2010 at 3:26 PM, jodator 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 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.comFor > 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 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
Re: Email Component and Model
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 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
Email Component and Model
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