I'm using the users model with an afterSave method placed after register to send the confirmation email but how can I load a view from the model to make it as a message body. I don't want to create a module because I need to centralize my themes so the users can find and edit them easily. Any ideas?
Page 1 of 1
Loading a view from a model
#2
Posted 01 October 2009 - 07:32 PM
manilodisan, on 01 October 2009 - 07:00 PM, said:
I'm using the users model with an afterSave method placed after register to send the confirmation email but how can I load a view from the model to make it as a message body. I don't want to create a module because I need to centralize my themes so the users can find and edit them easily. Any ideas?
i'm not sure what you are trying to do but first and foremost i don't think views are supposed to be loaded by models. could make it clearer what you want to do?
php:
foreach(array('cat', 'dog', 'cow') as $animal) echo $animal."\n";
python:
[(animal, print(animal)) for animal in ['cat', 'dog', 'cow']]
ruby:
['cat', 'dog', 'cow'].each {|animal| puts animal}
You say Tomato, I say Tomato.
Share this topic:
Page 1 of 1

Help












