【发布时间】:2020-05-12 22:06:54
【问题描述】:
我对 codeigniter 完全陌生,我使用在线教程为我在 codeigniter 中的登录表单创建了验证码。加载登录页面时出现以下错误:
> 致命错误:在
中调用未定义的函数 base_url() $config = array(
'img_path' => 'captcha_images/',
'img_url' => base_url().'captcha_images/',
'img_width' => '150',
'img_height' => 50,
'word_length' => 8,
'font_size' => 16
);
$captcha = create_captcha($config);
i dont have any folder named 'captcha_images', all i have is a controller for captcha,config and the view in login. As am new to this, is it because i dont have a folder or i didnt call any library? please help me with this. thanks in advance
【问题讨论】:
-
您是否在配置文件中定义了 base_url?
-
@sauhardnc,是的
标签: php codeigniter config captcha