2012-04-27 76 views
1

當提交表單,我得到一個錯誤笨,PHP:獲取對象未找到錯誤

Object not found! 
The requested URL was not found on this server. 
The link on the referring page seems to be wrong or outdated. 
Please inform the author of that page about the error. 
If you think this is a server error, please contact the webmaster 
Error 404 localhost 
04/27/12 15:30:23 
Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 

地址被顯示爲http://localhost/frame/localhost/frame/index.php/verifylogin

Url附加了localhost/frame/兩次。我不知道哪裏出了問題。

config.php代碼:

$config['base_url'] = 'localhost/frame/'; 
$config['index_page'] = 'index.php'; 
$config['url_suffix'] = ''; 

回答

2

嘗試:

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

,或者如果它會失敗,

$config['base_url'] = '/'; 
+0

謝謝$配置[ 'BASE_URL'] =「HTTP: //本地主機/幀/';有效。 – Cindrella 2012-04-27 10:23:34