03-29-2011, 12:24 PM
[eluser]oliverkalen[/eluser]
I use the form validation library quite often, and have extended it on several occasions without much trouble. I am currently working on an API server that implements REST. It would be nice to see the following methods added to the form validation library:
The method would still default to post.
Secondly, override the standard request method input entirely when dealing with more complex input:
I would be happy to implement the changes and forward them along to a Reactor developer. I am curious to here other thoughts and suggestions.
Added to UserVoice: http://uservoice.com/a/g4EVB
I use the form validation library quite often, and have extended it on several occasions without much trouble. I am currently working on an API server that implements REST. It would be nice to see the following methods added to the form validation library:
Code:
$this->form_validation->set_method('get'); // delete, etc.
The method would still default to post.
Secondly, override the standard request method input entirely when dealing with more complex input:
Code:
$input = array(
'item1' => $this->input->get('item1'),
'item2' => $this->_some_other_source(),
);
$this->form_validation->set_input($input);
I would be happy to implement the changes and forward them along to a Reactor developer. I am curious to here other thoughts and suggestions.
Added to UserVoice: http://uservoice.com/a/g4EVB