PHP code example of fishingboy / codeigniter-model-base
1. Go to this page and download the library: Download fishingboy/codeigniter-model-base library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fishingboy / codeigniter-model-base example snippets
$this->users_model->create([
'title' => 'sample'
]);
$this->users_model->update($id, [
'title' => 'sample'
]);
use fishingboy\ci_model_base\CI_Model_Base;
class Users_model extends CI_Model_base
{
protected $table = "users";
}