[TYPO3-mvc] How do I execute an external program from extbase?
Henjo Hoeksma
me at henjohoeksma.nl
Sun Jul 17 17:31:20 CEST 2011
On 2011-07-17 16:46:51 +0200, mario chiari said:
> Hello
>
> I would like to implement something like the following lines of code:
>
> // Opening the pdflatex process
> // changing directory to make pdflatex write the aux, log and pdf file
> in the workfile directory
> $command = "cd " . t3lib_extMgm::siteRelPath("pdf_export") .
> "workfiles; " . $cObj['pdflatexPath'] . "pdflatex&> texerror";
> $f=popen($command, "w");
>
> (from pdf_export
> http://typo3.org/extensions/repository/view/pdf_export/current/info/class.tx_pdf_export.php/)
How
>
> do you do something like that in extbase?
> Is there something I may look at and hack?
>
> Thanks a lot
> mario
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
More information about the TYPO3-project-typo3v4mvc
mailing list