2018-08-23, 14:41:28
Hello,
the plugin page covers it very well, you just have to read carefully, especially the section "Usage": http://get-simple.info/extend/plugin/imforms/1121/
It says there that you can use "one" of the two possible methods for rendering the forms: Automatic output "or" Manually output.
If you have nothing special, then I would choose the Automatic method. How that works is also written there - if you still have problems, you can report them here.
Then the installation is wrong or you forgot something.
Code that you posted there you don't need - everything you need is in the documentation.
the plugin page covers it very well, you just have to read carefully, especially the section "Usage": http://get-simple.info/extend/plugin/imforms/1121/
It says there that you can use "one" of the two possible methods for rendering the forms: Automatic output "or" Manually output.
If you have nothing special, then I would choose the Automatic method. How that works is also written there - if you still have problems, you can report them here.
(2018-08-23, 06:17:54)JAKE Wrote: If I follow the plugin page's direction it will crash on imforms not defined.
Then the installation is wrong or you forgot something.
(2018-08-23, 06:17:54)JAKE Wrote: EDIT: Answering to myself and stating that the documentation is lacking this whole Factory thing.
PHP Code:<?php $imforms = new ImForms\Factory(); ?>
<?php $imforms_processor = $imforms->getProcessor(); ?>
<?php $imforms_controller = new ImForms\Controller($imforms_processor); ?>
<?php $imforms->setController($imforms_controller); ?>
<?php $form = $imforms_processor->getFormByName('contact'); ?>
Code that you posted there you don't need - everything you need is in the documentation.