[英]ion_auth disable post method in codeigniter?
我正在對項目使用ion_auth庫(第一次)。
現在,我的帖子方法不起作用:
我的登錄表格是:
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
我改變了
$config['base_url'] = 'http://khabgahfeiz.ir/';
至 :
$config['base_url'] = 'http://www.khabgahfeiz.ir/';
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.