我用这个函数来启动一个表单:
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/';
您的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)
| 归档时间: |
|
| 查看次数: |
1817 次 |
| 最近记录: |