Welcome Guest, Not a member yet? Register   Sign In
form_helper problem
#1

[eluser]tristian[/eluser]
Hi Guys,

I'm having a problem with the form_helper. I have tried loading the helper in the controller and autoloader. When I call form_open() I get a fatal error:
Quote:Fatal error: Call to undefined function form_open()

I'm calling the method like this:
Code:
<? echo form_open('admin/login'); ?>

I have even checked to see if the form_helper has been loaded.
Code:
<?=var_dump($this->_ci_helpers);?>

It returns:
Quote:["form_helper"]=>bool(true)

Even when I check the form helper's code the function exists... If any of you guys could help me that would be great. If not I will just have to manually write the form. It might be worth noting that I have renamed the 'system' folder.
#2

[eluser]InsiteFX[/eluser]
Maybe your php short tags are turned off!

Code:
<?php echo form_open(); ?>

// autoload
$autoload['helper'] = array(
'url',
'form',
);
#3

[eluser]tristian[/eluser]
I have short tags turned on. That was just an example really. I'm off to try a few things to see if I can fit it.
#4

[eluser]tristian[/eluser]
I fixed it. I renamed <b>form_helper.php</b> to <b>form1_helper.php</b>. Then loaded it as form1.
#5

[eluser]InsiteFX[/eluser]
That's not a fix, if it did not load the original form_helper then you have a problem some place else.
#6

[eluser]tristian[/eluser]
I know there is a problem elsewhere, once I have finished building a small CMS for my website I will go back and look to solve it.

It's getting late here now, so I will have a look tomorrow after work and try other things...




Theme © iAndrew 2016 - Forum software by © MyBB