crm-summit/app/Models/ContactsModel.php

15 lines
395 B
PHP
Raw Permalink Normal View History

2024-04-24 13:20:52 +07:00
<?php namespace App\Models;
use CodeIgniter\Model;
class ContactsModel extends Model {
protected $table = 'contacts';
protected $primaryKey = 'contactid';
protected $allowedFields = [
'firstname', 'lastname', 'title', 'initial', 'birthdate', 'email_1', 'email_2', 'phone', 'mobile_1', 'mobile_2', 'createdate', 'enddate'
];
2025-11-26 10:45:05 +07:00
public function getAll() {
return $this->findAll();
}
2024-04-24 13:20:52 +07:00
}