Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Problem with validation
Post: RE: Problem with validation

Just delete Code: -- valid_email| -- from validation rules or use your own callbacks: Code: -- 'email' => ['label' => 'Email Address', 'rules' => 'callback_email_check|max_length [150]'] -- Your ...
510 Views
3 Replies
09-23-2021, 01:28 PM
janeiro
    Thread: Two functions, one shared view and plenty of fields. Trying to DRY my code
Post: Two functions, one shared view and plenty of field...

Here's my idea: let's say my form has 20 fields. I have two methods: add, update. Defining each field inside mentioned methods will take too long time. I'm looking for the way to define my fields on...
1,110 Views
1 Replies
04-13-2019, 01:32 PM
janeiro
    Thread: One controller to load the same form (empty or populated)
Post: One controller to load the same form (empty or pop...

1. I'd like to create one controller to add or edit article and load only one view (empty form or populated form) The code I've attached works and it's close to what I want but it has two different...
1,634 Views
1 Replies
03-15-2018, 07:50 AM
janeiro

Theme © iAndrew 2016 - Forum software by © MyBB