change the method name to _sendEmailNotification (single underscore) to make it protected, rather than private
$this->Email = new EmailComponent(); $this->Email->initialize($this); Those are the only things that I can think of. I've never imported a component inside of an AppController method - private, protected, or public. Maybe that's the problem? On Mon, Feb 9, 2009 at 1:57 AM, Kyle Decot <[email protected]> wrote: > > Ah, stupid mistake but I've updated the set to be body instead of > email_body and am still getting the same results. Any other ideas? > > On Feb 9, 1:55 am, brian <[email protected]> wrote: >> sorry, I should have unquoted that. This should be clearer. >> >> $this->set("email_body",$body); >> >> Notice (8): Undefined variable: body [APP/views/elements/email/html/ >> email_notification.ctp, line 1] > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
