ezAuth is a very handy library for user authentication/authorization. However it has not been updated lately to be compatible with the latest changes in CodeIgniter 2.1.0
I assume that you’ve successfully added it to your CodeIgniter project. For me all I did is that I copied ezauth_model.php to the models folder and loaded the model in my controllers.
In this new guide, I will list all the changes that you need to do to get it working with you from the first shoot! The following changes need to be done on the ezauth_model.php
- change:
class EzAuth_Model extends Model
to
class EzAuth_Model extends CI_Model
- Update the constructor name to become
function __construct() {
Instead of the class name - Add the following line toward the end of your constructor
parent::__construct();
- Make sure that the cookie helper is loaded in your au
toload.php file or add it to the constructor
$this->load->helper('cookie'); - Replace the db function “getwhere” with “get_where”
You’re done! good luck
hi, i try to use de eazauth_demo, i download it and copy the folder under wampserver, i follow the step in README -FIRST.txt in the eazauth_demo folder, when i try :htt//:localhost/ezauth_demo/ i see anything when i delete .htaccess file, the index file shown with some error, can you help ho to use the it in wamp
thanks