Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Form Validation
Post: RE: Form Validation

I agree with not using arrays if you don't have to.  My use case is selecting categories where the user must select 1 or more categories. There are many categories and they change quite frequently.
6,750 Views
5 Replies
04-07-2016, 07:36 AM
coldlamper
    Thread: Form Validation
Post: RE: Form Validation

Narf Wrote: (04-06-2016, 09:23 AM) -- It will return true, but that's what is supposed to happen - the 'required' rule in that case is applied on any elements that the input array may have. -- Than...
6,750 Views
5 Replies
04-06-2016, 09:32 AM
coldlamper
    Thread: Form Validation
Post: Form Validation

Won't this return true in the 3.0.6 release when it should return false?     $this->load->library('form_validation');    $inputData = ['inp' => []];    $this->form_validation->set_data($inputData...
6,750 Views
5 Replies
04-06-2016, 06:52 AM
coldlamper
    Thread: Spark Plug - Obtains an instance of CodeIgniter gracefully
Post: RE: Spark Plug - Obtains an instance of CodeIgnite...

rougin Wrote: (03-20-2016, 09:26 PM) -- Hello! Spark Plug is now v0.4.2! It fixes an issue when loading custom libraries. :) -- Thanks for writing this. It's very helpful for Phpunit testing or wri...
14,297 Views
10 Replies
04-01-2016, 08:04 AM
coldlamper
    Thread: Form Validation and Arrays
Post: Form Validation and Arrays

How can I check if a post variable is an array? If I try this: $this->form_validation->set_rules('data[]', 'Post Data', 'is_array'); It checks all the array elements with is_array. I want to ch...
5,404 Views
2 Replies
02-04-2016, 04:25 PM
coldlamper

Theme © iAndrew 2016 - Forum software by © MyBB