Welcome Guest, Not a member yet? Register   Sign In
Problems with form_validation on a PHP/MVC project

Hi guys:

I trying to create a small PHP/MVC project using CI. I have downloaded a CSS template, I modde it, but when I try to make a login using this as a reference, everything goes wrong.

When you click on the login button I get this error...

A PHP Error was encountered

Severity: Notice

Message: Undefined property: VerificarLogin::$form_validation

Filename: controllers/verificarlogin.php

Line Number: 32

Line 32 is
$this->form_validation->set_rules('username', 'Username', 'trim|required|xss_clean');

Obviously I need to load
before, and is actually line 31.

In some forums people say it's a matter of case. In the original example it was spelled Form_validation instead of form_vallidation, but either way I can't pass that nasty error.

My full project is in mediafire.com/?8zkcovu1m14bbee

Maybe you need a callback in your set_rules

Theme © iAndrew 2016 - Forum software by © MyBB