I have a function in my AppController called "sendEmail", and when I
need send a email in any part of my app I call $this-
>sendEmail($param1, $param2, ...).

Now i need send email by Shell, how i can do this without duplicate
the code?

Import the AppController in the Shell or move the function code to a
Task and import it in the AppController?

What best way? If possible show a exemple. :-)

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to