How insert null on save in select field |
In your model, create the following method:
PHP Code: protected function setDefaultIDMezzi(array $data) { You must then configure your model to call this method before each insert (and update if desired) by including these protected variables: PHP Code: protected $beforeInsert = ['setDefaultIDMezzi']; Please review the documentation to make sure you completely understand: https://codeigniter.com/user_guide/model...your-model. |
Messages In This Thread |
How insert null on save in select field - by pippuccio76 - 10-22-2021, 03:38 AM
RE: How insert null on save in select field - by includebeer - 10-26-2021, 04:16 AM
RE: How insert null on save in select field - by mlurie - 10-26-2021, 08:35 AM
|