简体   繁体   English

ion_auth禁用codeigniter中的post方法?

[英]ion_auth disable post method in codeigniter?

I'm using ion_auth library to my project (for the first time). 我正在对项目使用ion_auth库(第一次)。

now, my post methods not works : 现在,我的帖子方法不起作用:

my login form is : 我的登录表格是:

http://www.khabgahfeiz.ir/admin/login http://www.khabgahfeiz.ir/admin/login

in my controller : 在我的控制器中:

    public function handling() {

        var_dump($_POST['email']); // or echo $this->input->post('email'); 
        return;
....

but it returns null value and I got this error : 但是它返回null值,我得到了这个错误:

Severity: Notice

Message: Undefined index: email

Filename: backend/login.php

Line Number: 29

I added before : 我之前添加:

$autoload['helper'] = array('url', 'file', 'form','security','date','cookie','download');

my htaccess: 我的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

I changed it 我改变了

 $config['base_url']    = 'http://khabgahfeiz.ir/';

to : 至 :

$config['base_url'] = 'http://www.khabgahfeiz.ir/';

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM