In Email::__renderTemplate()
$content = $View->element('email' . DS . 'text' . DS . $this->template,
> array('content' => $content), true);
>
And below is View::element definition:
> function element($name, $params = array(), $loadHelpers = false)
So if the loadHelper was set true, the 'afterRender' callback function will
be called:
if ($loadHelpers === true) {
> $this->_triggerHelpers('afterRender');
> }
And in Jsmin::afterRender:
function afterRender(){
//.....
*$view =& ClassRegistry::getObject('view');*
$view->addScript($out);
return true;
}
$view =& ClassRegistry::getObject('view'); //the view is null. I just don't
know why the view object couldn't be got here?*
*
--
Thanks
Joshua
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---