Welcome Guest, Not a member yet? Register   Sign In
Undefined property: Form::$form_validation
#1

[eluser]joky[/eluser]
Hi everyone,

I'm new to CI and to this forum so thanks in advance for accepting me with my bad english.

Well, I tryed to make a form with validation. Something very simple and it did'nt work so, I took a look at the user guide and I copy/paste the 3 files needed.

The only thing I changes is the views folder.

But I got the same error :

Quote:A PHP Error was encountered
Severity: Notice
Message: Undefined property: Form::$form_validation
Filename: controllers/form.php
Line Number: 11

And here is my form.php

Code:
<?php

class Form extends CI_Controller {

    function index()
    {
        $this->load->helper(array('form', 'url'));

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

        if ($this->form_validation->run() == FALSE)
        {
            $this->load->view('tests/myform');
        }
        else
        {
            $this->load->view('tests/formsuccess');
        }
    }
}
?>

So line 11 is :

Code:
if ($this->form_validation->run() == FALSE)

I hope some one will be able to help me soon.

Regards Smile


Messages In This Thread
Undefined property: Form::$form_validation - by El Forum - 04-20-2011, 05:52 AM
Undefined property: Form::$form_validation - by El Forum - 04-20-2011, 07:37 AM
Undefined property: Form::$form_validation - by El Forum - 04-20-2011, 07:51 AM
Undefined property: Form::$form_validation - by El Forum - 04-20-2011, 07:24 PM
Undefined property: Form::$form_validation - by El Forum - 04-25-2011, 08:37 AM
Undefined property: Form::$form_validation - by El Forum - 04-25-2011, 08:20 PM
Undefined property: Form::$form_validation - by El Forum - 04-26-2011, 05:56 AM
Undefined property: Form::$form_validation - by El Forum - 04-26-2011, 04:42 PM
Undefined property: Form::$form_validation - by El Forum - 04-27-2011, 01:18 AM
Undefined property: Form::$form_validation - by El Forum - 04-27-2011, 02:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB