title: cakephp how do you call a controller's action inside a model
body: <p>I'm working within afterSave in my messages model. I'd like to send an email every time a message is created to notify the recepient of their new message. I have an action inside of the messages controller that sends the email and i'd like to call it from afterSave. </p>
  
  <p>I've tried calling it like this:</p>
  
  <pre><code>function afterSave($created){
      if($created){
          $this-&gt;msgToEmail($this-&gt;data);
      }
  }
  </code></pre>
  
  <p>i get a sql error because it looks for the function inside of the model instead of the controller. </p>
  
  <p>How do i declare the model function? is it possible?</p>