13 lines
557 B
PHP
13 lines
557 B
PHP
<?php
|
|
namespace App\Models;
|
|
use CodeIgniter\Model;
|
|
class BusinessModel extends Model
|
|
{
|
|
protected $table = 'business';
|
|
protected $primaryKey = 'business_id';
|
|
protected $allowedFields = ['business_id','business_unique_id','branch_unique_id','logo', 'business_name','isactive','letter_header','header_html','footer_html', 'email', 'smtp_host', 'smtp_user', 'smtp_pass', 'smtp_port'];
|
|
|
|
public function getBusinessById($business_id) {
|
|
return $this->db->table('business')->where('business_id', $business_id)->get()->getRowArray();
|
|
}
|
|
} |