我正在将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
答案 0 :(得分:0)
我改变了它
$config['base_url'] = 'http://khabgahfeiz.ir/';
到:
$config['base_url'] = 'http://www.khabgahfeiz.ir/';