Created
December 23, 2020 15:34
-
-
Save AlphaRomeoMike/bd7ffe9704577612288cc9149d6723d2 to your computer and use it in GitHub Desktop.
Crud Model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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