[TYPO3-project-formidable] resolve xml-path
Loredana ZECA
l.zeca at ameos.com
Fri Apr 25 09:21:34 CEST 2008
Hy Christian,
It seems that you have an url problem.
This can be solved like this:
$formFile = $this->conf['template.']['formidable'];
$this->oForm->init($this, $this->oForm->toWebPath($formFile));
I hope this helps you.
Loredana
Christian Tauscher a écrit :
> Hi dear develoers!
>
> I'd like to change the xml-file dynamically, and store them in fileadmin.
>
> Trying this:
>
> $formFile = $this->conf['template.']['formidable'];
> $this->oForm->init($this, $formFile);
>
> leads to an Error:
>
> FORMIDABLE CORE - The given XML file path
> (/srv/www/htdocs/fileadmin/templates/templates_ext/foto/anmelden.xml)
> does not exist
>
> Of course this file doeas not exist! Formidable seems not to resolve the
> path fully.
>
> This should be:
>
> /srv/www/htdocs/dk/project1/fileadmin...
> ^^^^^^^^^^^^!
>
> Since I do not expect to know the whole abolute path by the user: How to
> resolve the given relative path correctly?
>
> Thanks for your help,
>
> Christian.
More information about the TYPO3-project-formidable
mailing list