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

I think an alternative syntax to what we have would be more user friendly PHP Code: -- $validation->setRule('first_name', 'required', [ 'label' => 'First Name', 'errors' => [ 'required' => 'The...
6,015 Views
9 Replies
11-15-2017, 12:11 PM
averroez
    Thread: Where store a lot of arrays?
Post: RE: Where store a lot of arrays?

if I have static data i usually keep it under config dir, but in your case if you have a large set then you might as well create a directory under application called data and put it there.
4,968 Views
6 Replies
11-14-2017, 12:26 AM
averroez
    Thread: Optimization on Nested Loop
Post: RE: Optimization on Nested Loop

bad idea as Narf said queries in loop are bad practice, as I see you are trying to get employees with total users assigned group by query would be ideal in this case. this might help you https:/...
5,462 Views
7 Replies
11-14-2017, 12:23 AM
averroez
    Thread: Nice way let user know email already exists via a flash message
Post: RE: Nice way let user know email already exists vi...

As @ChicagoPhil said you can translate/change the messages and then you can use the helpers like form_error('email') to render the message where ever you like. if you really need to test if email has ...
10,166 Views
6 Replies
11-14-2017, 12:18 AM
averroez

Theme © iAndrew 2016 - Forum software by © MyBB