CodeIgniter Forums

Full Version: users library error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum


Im trying to use the user library but im getting this error:

A PHP Error was encountered

Severity: Notice

Message: Undefined property: User::$users

Filename: controllers/user.php

Line Number: 32

Fatal error: Call to a member function isLoggedIn() on a non-object in

in the index controller im using:


and the Users.php library is on libraries folder...using this code:

Whats the problem? any ideas?

El Forum

You need put hold code for see the error!

El Forum

Ok, now it work, i have added this:

function register()

I have created an user register form, and i would like to send the form to that function, how can i do it?, i got this:

<?php form_open('user/register', array('name' => 'users_register')); ?>

To tell the form where to go, but nothing happens...