Guest User

Untitled

a guest
Jun 17th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <?php
  2. /**
  3. * Assumes you have the EmailComponent attached to the AppController in your application
  4. *
  5. * @return void
  6. * @author Jose Diaz-Gonzalez
  7. */
  8. function setupEmail() {
  9. if (empty($this->Controller)) {
  10. App::import('Controller','App');
  11. $this->Controller = new AppController();
  12. $this->Controller->constructClasses();
  13. $this->Controller->Email->initialize($this->Controller);
  14. }
  15. }
  16. ?>
Add Comment
Please, Sign In to add comment