2009年6月18日星期四

[fw-mvc] How to render different actions?

Hi,

I would like to use Zend-Mvc to create a dynamic LaTeX documen. My
problem is: how can I call some other module/controller/actions into an
action, and get the result into a variable. Each one of the other
module/controller/actions will represent a page of my LateX report and
the main action will be called as a normal action (by the url).
For example in my controller

public function reportAction(){

$myReportPages = array(
array('aModule', 'aController', 'anAction'), //page 1 of my
report, the view related to the action is a Latex template
array('aModule', 'aController', 'anOtherAction') //page 2 of
my report
);

// create my report and get the results into a variable

file_put_content($myReportContent, 'myfile.tex');

....

}

This case applies to my report, but this is a more general question: how
to call actions manually?

I hope I'm clear, and I'm sorry for the English mistakes.

thanks,

Bertrand Chevrier

没有评论: