Codeigniter:form_open给出了无效的函数URL

Azi*_*nam 0 forms codeigniter

我用这个函数来启动一个表单:
echo form_open('email/send');
在查看源代码后,我发现form_open返回了重复的index.php:

<form action="http://localhost/ci/index.php/index.php/email/send"
注意:
我尝试在页面中只保留这行代码,但仍然给了我相同的结果

EDIT1:

基本网址: $config['base_url'] = 'http://localhost/ci/index.php/';

bir*_*ric 5

您的index_page配置项设置为什么?如果您base_url和index_page配置项都包含,"index.php"那么我想form_open()会复制它.

将您更改application/config/config.php为:

$config['base_url'] = 'http://localhost/ci/';

//...

$config['index_page'] = 'index.php';
Run Code Online (Sandbox Code Playgroud)