I know that in task, I can use partial as this:
$configuration =
ProjectConfiguration::getApplicationConfiguration('frontend', 'prod', true);
$context = sfContext::createInstance($configuration);
$configuration->loadHelpers('Partial');
$message->attach( new
Swift_Message_Part(get_partial('mail/sendNewMemberAlertBody',
array("users"=>$users,"lan"=>$lan,
"receiver"=>$receiver,"html"=>true,"images"=>$imageReferences)),
'text/html'));
But now the service is extending sfAmfService, if I use the same solution, I
got this error:
*Fatal error*: Call to a member function getActionCache() on a non-object in
*
D:\websites\chineselovebridges\symfony-clb\lib\vendor\symfony\lib\view\sfPHPView.class.php
* on line *157
Can anyone help me with this?
*
On Tue, Jan 26, 2010 at 12:43 PM, xhe <[email protected]> wrote:
> I am using afmphpPlugin, and I want to use get_partial function, but
> always got fatal error, Fatal error: Call to undefined function
> getPartial()
>
> the class defination is
> class FaceBookService extends sfAmfService
>
> So can anyone tell me how to call the getPartial function here?
>
> Thanks
--
You received this message because you are subscribed to the Google Groups
"symfony users" 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/symfony-users?hl=en.