showing an error as undefined when calling that method from anyone of
my controllers. I did some searching and see that this should not be
an issue, any thoughts?
I am using version 1.2 and my AppController is located at /app/
app_controller.php.
I am calling the below method from another controller:
function sendMessage($from, $to, $subject, $msgBody)
{
$this->Email->sendAs = 'text';
$this->Email->from = $from;
$this->Email->to = $to;
$this->Email->subject = $subject;
$this->Email->send($msgBody);
echo "success";
}//end sendMessage
gives me:
Fatal error: Call to undefined function sendMessage()
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
To unsubscribe, reply using "remove me" as the subject.
No comments:
Post a Comment