2
我正在使用ion_auth庫到我的項目(第一次)。ion_auth禁用codeigniter中的post方法?
現在,我的帖子方法不工作:
我的登錄表單是:
http://www.khabgahfeiz.ir/admin/login
在我的控制器:
public function handling() {
var_dump($_POST['email']); // or echo $this->input->post('email');
return;
....
但它返回null
價值,我得到這個錯誤:
Severity: Notice
Message: Undefined index: email
Filename: backend/login.php
Line Number: 29
我加入之前:
$autoload['helper'] = array('url', 'file', 'form','security','date','cookie','download');
我的htaccess:
AddType application/x-httpd-php53 php53 php
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^khabgahfeiz.ir$ [NC]
RewriteRule ^(.*)$ http://www.khabgahfeiz.ir/$1 [R=301,L]
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
</IfModule>
order allow,deny
allow from all
是否輸入域'南E ='email''? – Tpojka
@Tpojka是:http://www.khabgahfeiz.ir/admin/login –
將'exit;'而不是'return;'用於調試目的。 – Tpojka