Welcome Guest, Not a member yet? Register   Sign In
users library error
#1

[eluser]lucasvm[/eluser]
Hello

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:

$this->load->library('users');

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

http://codeigniter.com/wiki/Users_Library/

Whats the problem? any ideas?
#2

[eluser]Shaser[/eluser]
You need put hold code for see the error!
#3

[eluser]lucasvm[/eluser]
Ok, now it work, i have added this:

function register()
{
$this->load->library('users');
$this->load->helper('form');
$this->load->library('email');
if($this->input->post('userregister'))
{
............

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...




Theme © iAndrew 2016 - Forum software by © MyBB