Yeah... you can use any helper and load it just like you would in a normal CI app (autoload, controller, view file etc). Alternatively, FUEL comes with a Form and Form_builder library class (along with it's own Validator class).
Are you adding the function call to a page variable field within the admin? If so, that may be a Dwoo parsing error. If you look at the fuel/application/config/parser.php file you'll see a "parser_allowed_php_functions" configuration parameter which you can add functions that can then be called like so {form_open()}
Yes im trying to include within the admin in a page, at this time im not able to see the files via FTP but i will check it as soon as i get to my home thanks for your help!!!!
Thank you so much for fuel cms, Same problem here, using a form i made in ci, using ci form helper. I have auto loaded it i also changed the page render to cms. and allowed form_open and form_input in the parser.php file.
Now the error i am getting is " Plugin Array can not be found, maybe you forgot to bind it if it's a custom plugin ? "
It's complaining probably because the "Array" function is being used. What happens if you change it to "array"? Also, is this the view file that you imported into your page (not seeing the Dwoo templating syntax e.g. {form_input('subject,'')})
You need to use the Dwoo templating syntax so change the => to just "=" and remove the quotes around the key and see if that works. http://wiki.dwoo.org/index.php/Helpers:array
Comments
when i try to do this action returns the next error:
An Error Was Encountered
Call to a disallowed php function : form_open
i hope this helps....
Yes im trying to include within the admin in a page, at this time im not able to see the files via FTP but i will check it as soon as i get to my home thanks for your help!!!!
I have auto loaded it
i also changed the page render to cms.
and allowed form_open and form_input in the parser.php file.
Now the error i am getting is
" Plugin Array can not be found, maybe you forgot to bind it if it's a custom plugin ? "
here is my form view
<?php echo fuel_var('body');?>
<?php echo form_open('contact_us/send');?>
<?php echo form_input('name', '');?>
<?php echo form_input('email', '');?>
<?php echo form_input('subject', '');?>
<?php $textarea = Array ("name" => "message", "cols" => "21", "rows" => "8");?><?php echo form_submit('submit', 'Send');?>
<?php echo form_reset('clear', 'Clear');?>
<?php echo form_close();?>
Thanks in Advance.
{fuel_var('body')}
{form_open('contact_us/send')}
Name: {form_input('name', '')}
Email:{form_input('email', '')}
Subject:{form_input('subject', '')}
{$textarea = Array ("name" => "message", "cols" => "21", "rows" => "8")}
Message:
{Form_textarea($textarea)} {form_submit('submit', 'Send')} {form_reset('clear', 'Clear')} {form_close()}
I tried changing the "Array" to lower case, and that gave this error
Compilation error at line 86 in "string:" : Parse error in "ame" => "message", "cols" => "21", "rows" => "8")}
Message:
{Form_textarea($textarea)} {form_submit('submit', 'Send')} {form_reset('clear', 'Clear')} {form_close()}
Thanks again
{$textarea = array ("name" => "message", "cols" => "21", "rows" => "8")}
if i get rid of the line above, then fuelcms is able to load the page.
http://wiki.dwoo.org/index.php/Helpers:array