Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Crud Model
<?php
namespace App\Models;
use CodeIgniter\Model;
class CrudModel extends Model {
protected $table = 'tbl_users';
protected $primaryKey = 'id';
protected $allowedFields = ['name', 'email', 'gender'];
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment