Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Can I convert empty strings to NULL with a Codeigniter validation rule?
Post: RE: Can I convert empty strings to NULL with a Cod...

(02-28-2019, 12:25 PM)dave friend Wrote: That sounds like a good approach. I'd like to see the implementation. I did it and it’s working fine, with strings, and also with numeric values.  Here is my...
b126 Libraries & Helpers 7 6,235 02-28-2019, 12:45 PM
    Thread: Can I convert empty strings to NULL with a Codeigniter validation rule?
Post: RE: Can I convert empty strings to NULL with a Cod...

At the end I think that I will override the post() method of the CI_Input core class instead. Quicker and easier than everything else. Just one line of code to add.
b126 Libraries & Helpers 7 6,235 02-27-2019, 04:11 PM
    Thread: Can I convert empty strings to NULL with a Codeigniter validation rule?
Post: RE: Can I convert empty strings to NULL with a Cod...

(02-27-2019, 01:10 PM)php_rocs Wrote: @b126, You should be able to use a PHP function such as isset() (scroll down page to See Also for other suggestions- http://php.net/manual/en/function.isset.ph...
b126 Libraries & Helpers 7 6,235 02-27-2019, 01:30 PM
    Thread: How often do you use the backup() method of the database drivers?
Post: RE: How often do you use the backup() method of th...

Never used this feature as we are working in a professional environment with our own servers.
b126 CodeIgniter 4 Development 33 27,450 02-27-2019, 09:11 AM
    Thread: Can I convert empty strings to NULL with a Codeigniter validation rule?
Post: Can I convert empty strings to NULL with a Codeign...

I would like to convert all my POST values from '' to NULL automatically with a Codeigniter validation rule. Is it possible? Here is my helper, which is working fine with text and numbers : PHP Code:...
b126 Libraries & Helpers 7 6,235 02-27-2019, 08:40 AM
    Thread: Use anything as a rule and $this->some_model issue
Post: RE: Use anything as a rule and $this->some_model i...

How do you proceed if you have to send two parameters to your callable? I am trying since hours and I don't get any solution, since I need to compare two dates (start <= end). In your example, ho...
b126 Libraries & Helpers 8 4,092 02-21-2019, 04:02 AM
    Thread: Validation callback function in Model with several parameters
Post: Validation callback function in Model with several...

Dear all, I am trying to use a custom validation callback function, from a model (not from the controller, as I am trying to keep them slim), and this function takes two parameters. As described in ...
b126 Libraries & Helpers 1 2,858 02-21-2019, 02:49 AM

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.