2011-11-30 77 views
0

我用这个功能来启动一个形式:
echo form_open('email/send');
和查看源代码后,我发现,form_open返回复制的index.php:笨:form_open了无效的功能URL

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

编辑1:

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

+0

那你已经为你的基地网址是什么? – Catfish

回答

5

你的index_page配置项设置为?如果你的base_urlindex_page配置项都包括"index.php"那么我想form_open()会复制它。

更改application/config/config.php到:

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

//... 

$config['index_page'] = 'index.php'; 
+0

谢谢,你解决了我的问题。 –