[TYPO3-project-formidable] How can I use formidable within extensions?

Manuel Rego Casasnovas mrego at igalia.com
Mon Jan 19 08:42:15 CET 2009


Hello Hauke,

On Sun, 2009-01-18 at 15:37 +0100, newgrp at googlemail.com wrote:
> formidable looks really nice to me, so I would like to use the functions.
> But I don't know how to integrate forms generated with formidable within my 
> own extensions.
> 
> Is there a way? Or do I have to make a form with formidable and put the 
> source code ´to my extensions?

Yes you can do it, with something like:
$this->oForm = t3lib_div::makeInstance("tx_ameosformidable");
$this->oForm->init(
	$this,	// reference to the current plugin object
	"EXT:my_extkey/pi1/xml/myapp.xml" // soft-path to xml file
);

See a full example at:
http://formidable.typo3.ug/tutorials/start-up-a-project-with-formidable.html

Best regards,
   Rego

-- 
Manuel Rego Casasnovas
Computer Science Engineer
mailto:mrego at igalia.com
Tel: +34 986 10 76 10
Fax: +34 981 91 39 49
Igalia - http://www.igalia.com


More information about the TYPO3-project-formidable mailing list