function __construct() { parent::__construct(); if (!is_login()) { set_notify('error', 'คุณไม่มีสิทธิเข้าใช้งานในส่วนนี้ค่ะ'); redirect('home'); } else { if (!is_publish('documents')) { set_notify('error', 'คุณไม่มีสิทธิเข้าใช้งานในส่วนนี้ค่ะ'); redirect('home'); } } }
function __construct() { parent::__construct(); }
public function view($quote_id) { $this->document =& $this->mdl_quotes; parent::view_document($quote_id); }
public function __construct() { parent::__construct(); $this->load->model('mdl_invoices'); }