Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Assumes you have the EmailComponent attached to the AppController in your application
- *
- * @return void
- * @author Jose Diaz-Gonzalez
- */
- function setupEmail() {
- if (empty($this->Controller)) {
- App::import('Controller','App');
- $this->Controller = new AppController();
- $this->Controller->constructClasses();
- $this->Controller->Email->initialize($this->Controller);
- }
- }
- ?>
Add Comment
Please, Sign In to add comment