1. Go to this page and download the library: Download slaxweb/ci-basemodel 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/ */
slaxweb / ci-basemodel example snippets
class Some_model extends \SlaxWeb\BaseModel\Model
use \SlaxWeb\BaseModel\Constants as C;
class Test_model extends \SlaxWeb\BaseModel\model
{
}
$this->insert(array("column" => "value"));
// retrieves row with primary key value 123
$this->get(123);