Hm errors there, or i misunderstud smthg how to get object of execution 
container?

$e2 = AgaviController::createExecutionContainer();
// *Fatal error*: Cannot access protected property 
UserSpace_FirmInputView::$context in 
*/usr/local/share/php/agavi/controller/AgaviController.class.php* on 
line *116*

if i trying to use second i got:
$e1 = AgaviExecutionContainer::createExecutionContainer();
// *Fatal error*: Call to undefined method 
UserSpace_FirmInputView::getOutputType() in 
*/usr/local/share/php/agavi/controller/AgaviExecutionContainer.class.php* 
on line *215*


> Send users mailing list submissions to
>       [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>       http://lists.agavi.org/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
>       [email protected]
>
> You can reach the person managing the list at
>       [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of users digest..."
>
>
> Today's Topics:
>
>    1. How-to Generate Email-Body and use it for email sending
>       (Liutauras)
>    2. Re: How-to Generate Email-Body and use it for email     sending
>       (David Z?lke)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 25 Feb 2009 11:16:42 +0200
> From: Liutauras <[email protected]>
> Subject: [Agavi-Users] How-to Generate Email-Body and use it for email
>       sending
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=windows-1257; format=flowed
>
> Hi again,
>
> i used execution container to get rendered email output. With 
> translation and replacements of key value pairs.
> This is how i made:
>
> $e = new AgaviExecutionContainer();
> $e->initialize($this->context);
> $e->setRequestData($rd_new_with_key_value_pairs_for_replacements_in_tpl);
> $e->setOutputType($this->container->getOutputType());
> $e->setActionName('Auth.ForgotPass');
> $e->setModuleName('Mailer');
> $html = $e->execute();
> $html = $e->getResponse()->getContent();
> // print_r_($html);
>
> this code is ok for development or this code isnt very clear/redundant?
>
> Thanks.
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 25 Feb 2009 10:26:28 +0100
> From: David Z?lke <[email protected]>
> Subject: Re: [Agavi-Users] How-to Generate Email-Body and use it for
>       email   sending
> To: Agavi Users Mailing List <[email protected]>
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="us-ascii"
>
> On 25.02.2009, at 10:16, Liutauras wrote:
>
>   
>> Hi again,
>>
>> i used execution container to get rendered email output. With
>> translation and replacements of key value pairs.
>> This is how i made:
>>
>> $e = new AgaviExecutionContainer();
>> $e->initialize($this->context);
>> $e- 
>>     
>>> setRequestData($rd_new_with_key_value_pairs_for_replacements_in_tpl);
>>>       
>> $e->setOutputType($this->container->getOutputType());
>> $e->setActionName('Auth.ForgotPass');
>> $e->setModuleName('Mailer');
>> $html = $e->execute();
>> $html = $e->getResponse()->getContent();
>> // print_r_($html);
>>
>> this code is ok for development or this code isnt very clear/ 
>> redundant?
>>     
>
> AgaviController::createExecutionContainer()... or  
> AgaviExecutionContainer::createExecutionContainer(), which passes  
> options from that container to the new one as default values.
>
> - David
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: smime.p7s
> Type: application/pkcs7-signature
> Size: 2474 bytes
> Desc: not available
> Url : 
> http://lists.agavi.org/pipermail/users/attachments/20090225/40b2761c/attachment-0001.bin
>  
>
> ------------------------------
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.agavi.org/mailman/listinfo/users
>
>
> End of users Digest, Vol 28, Issue 29
> *************************************
>
>   


_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to