Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Codeigniter 储罐认证设置值未在寄存器形式中定义_Codeigniter_Tankauth - Fatal编程技术网

Codeigniter 储罐认证设置值未在寄存器形式中定义

Codeigniter 储罐认证设置值未在寄存器形式中定义,codeigniter,tankauth,Codeigniter,Tankauth,单击“注册”按钮时出现以下错误 致命错误:在第19行的C:\wamp\www\bdcom\www\application\views\auth\register\u form.php中调用未定义的函数set\u value() 我是codeigniter框架的新手 下面是register_form.php中的代码 if ($success){ echo '<div id=success>'.$success_message.'<div>'; }else {

单击“注册”按钮时出现以下错误

致命错误:在第19行的C:\wamp\www\bdcom\www\application\views\auth\register\u form.php中调用未定义的函数set\u value()

我是codeigniter框架的新手

下面是register_form.php中的代码

if ($success){
    echo '<div id=success>'.$success_message.'<div>';
}else {
    //show the form
$use_username = true;
if ($use_username) {
    $username = array(
        'name'  => 'username',
        'id'    => 'username',
        'value' => set_value('username'),

        'maxlength' => $this->config->item('username_max_length', 'tank_auth'),
        'size'  => 30,
    );
}
也已在autoloader中加载表单帮助程序。从3天的尝试中,我发现问题出在哪里。谢谢你的帮助


谢谢

检查autoload.php是否有以下内容,如果没有添加,则是由于没有加载表单帮助程序

$autoload['helper'] = array('url','form','html');

在控制器的构造函数中,编写以下内容:

$this->load->helper('form');

还有这个。在stackoverflow和Ellisplates中搜索了一天。除注册用户外,CI似乎工作正常。
$this->load->helper('form');