2020-02-29, 03:00:34
(2020-02-29, 01:36:29)Riianna Wrote: If i put php snippet renderResources() in the head section whole website dissapears .
Why did you do that?
Why didn't you just use the shortcode [[imforms contact]] ?
Also, the call should look like this:
Code:
echo $form->renderResources();
... instead of:
Code:
renderResources();
If you have decided to call ImForm's methods manually, for whatever reason ... you should definitely take note of the usage description. It says that you have to change a variable value in your "custom.config.php" file before you do so - did you do it?
The description also says, that before you call "echo $form->renderResources();" you must first create your Form object instance. This should be done like this:
Code:
$form = $imforms->getForm('contact');
- did you do it?
Besides, after all those years of using CMS, you should know by now that a "white page" usually always means a fatal error. Therefore, in that case, you should always comment out "define('GSDEBUG', TRUE);" line in "gsconfig.php". So you would already know the issue and point it out to me - your problem would be solved in 2 minutes.