I'm using ion_auth library to my project (for the first time).
now, my post methods not works :
my login form is :
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 :
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:
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/';
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.