public function beforeFilter() { parent::beforeFilter(); $this->helpers[] = 'Emails.EmailAttachments'; return true; }