2011-11-30 40 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

謝謝,你解決了我的問題。 –