[eluser]nzmike[/eluser]
Hi there,
I've been building an application for a few months now a decided to upgrade to latest version of Code Igniter (1.7) to try out the new form validation class. I have everything working except for two things.
1. In the old validation class I would use something like:
Code:
$this->validation->content = $result->content;
To populate the inputs with data from the database and this doesn't seem to work with the new validation class (and yes I am changing it to $this->form_validation->content = $result->content).
2. To actually insert/update a value from the form to the database I called the model from the controller with something like:
Code:
$this->example_model->insert_content($this->validation->content)
Is this the correct way of doing it? And how do I do this in the new validation class? I've read the documentation but couldn't find answers to these questions...maybe I'm missing something.
Anyway Cheers,
Mike