[TYPO3-mvc] How do I execute an external program from extbase?

mario chiari m at mariochiari.net
Tue Jul 19 15:43:23 CEST 2011


Henjo, All

On Sun, 2011-07-17 at 17:31 +0200, Henjo Hoeksma wrote:
> On 2011-07-17 16:46:51 +0200, mario chiari said:

> Hi Mario,
> 
> I would include the class (using require_once) from within a specific 
> action to handle this.
> That way you have access over those functions and the class becomes 
> your library.
> 
> You might need to write a view for that too.
> 
> Henjo


thanks for you hint. It seems to work.

Now, what I would like to be able to do next is something like the
following:

domain Autore
AutoreController.php includes a new action:
public function listtexAction() {             
                include_once('mario.php');   // my library
                $new = new Mario;
		$autores = $this->autoreRepository->findAll(); 
$renderedTemplate =?  $this->view->assign('autores', $autores); // (*)
                echo $new->texIt($renderedTemplate);  
// textIt create a .tex file and pass to pdflatex. 
 	}

I know that (*) is no sense, but I hope you understand what I would like
to do. 

Your advise is very welcome
thanks 
mario



More information about the TYPO3-project-typo3v4mvc mailing list