(05-08-2018, 06:03 AM)rachidE Wrote: I've already done that, but without success
OK!
I've taken the code you have pasted in and created a brand new installation of CI 3.1.8
In order to get this thing working i had to do 2 changes to your code:
1, in the form i've changed base_url() to site_url()
2, see the example class
PHP Code:
<?php class Test extends CI_Controller {
public function __construct() { parent::__construct(); // Loading helpers and library $this->load->helper(array('form', 'url')); $this->load->library('form_validation'); }
Personally i do not like the case sensitive name tags in the form, so if it would be up to me u would rename Username to username, but that is just my preference..
hello,
I did what you suggested, but it still does not work.
(05-09-2018, 12:01 PM)qury Wrote: Hi,
I've fixed this up for you.
The files are in a directory structure, so you should be able to copy them to their correct place.
whaterwherisyour.domain/index.php/login_controller/index will display the login form
Take a look at the index method in Login_controller.php so next time you will not use includes in your form
Also if you change the "name" tags in your form to lowercase , you have will have to do that in the form validation as well.
I did what you suggested, the problem presists, and in addition when I removed the header and the footer of my login page, the graphic presentation has disappeared.
- you load session, but the session save path is set to NULL.
- your file names are all over the place, the controller file should begin with a capital letter (Login_controller.php instead of login_controller.php)
- in application/config/config.php set the following $config['index_page]='index.php'; (currently this is blank, but maybe you have a redirect)
I recommend reading the style guide section of the guide. Also maybe a using a linux platform for development
(05-10-2018, 12:58 PM)qury Wrote: - you load session, but the session save path is set to NULL.
- your file names are all over the place, the controller file should begin with a capital letter (Login_controller.php instead of login_controller.php)
- in application/config/config.php set the following $config['index_page]='index.php'; (currently this is blank, but maybe you have a redirect)
I recommend reading the style guide section of the guide. Also maybe a using a linux platform for development
I did everything you asked me but it still does not work.