Hi.

Is it possible to have views that are not for display? I want my system to
send e-mails on certain events and i would like to have multiple
templates, one for each of those events. I would like to be able to use
them as a regular view. Kinda like:

function foo()
{
    ... some code ...
    $this->set('to', '[EMAIL PROTECTED]');
    $this->set('name', 'Some Name');
    $this->set('message', 'Hello world!');
}

And, instead of displaying a page, an e-mail would be sent.

Is this to far off? Can something like this be done?

-- 
Gonçalo Marrafa <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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