1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<?php echo form_open('test/save', array('id'=>'frm')); ?> <h5>Username</h5> <input type="text" name="username" value="<?php echo set_value('username'); ?>" size="50" /> <h5>Email Address</h5> <input type="text" name="email" value="<?php echo set_value('email'); ?>" size="50" /> <div><input type="submit" value="Submit" /></div> </form> |
while running the above view page using controller function it throws the below error
Fatal error: Call to undefined function form_open()…..
Usualy this error will throw becuse of missing the including the helper file.
Please edit the autoload.php in the config folder with below lines
$autoload[‘helper’] = array(‘url’,’form’);–add ‘form’ in this array if not exists.