public function __construct() { parent::__construct(); if (!$this->input->is_ajax_request()) { return show_404(); } }
function __construct() { parent::__construct(); $this->load->model('produtos_model'); $this->load->model('produtos_fotos_model'); $this->load->model('categorias_model'); }
function __construct() { parent::__construct(); $this->load->model('produtos_model'); $this->load->model('pessoas_model'); $this->load->model('clientes_model'); $this->load->model('pedidos_model'); $this->load->model('pedidos_itens_model'); }
function __construct() { parent::__construct(); $this->template->set_js('php.min.js'); $this->template->set_js('login.js'); $this->template->set_breadcrumbs('Área Administrativa'); $this->load->model('pessoas_model'); $this->load->model('clientes_model'); $this->load->helper('combos'); }
public function __construct() { parent::__construct(); // if (!(($psw = $this->uri->segment(3)) && (md5 ($psw) == '23a6a54bf45b8ea5551f958e4ed82990'))) { // echo '密碼錯誤!'; // exit (); // } if (!$this->input->is_cli_request()) { echo 'Request 錯誤!'; exit; } }
public function __construct() { parent::__construct(); if (!(($id = $this->uri->rsegments(3, 0)) && (is_numeric($id) ? $this->tag = ArticleTag::find_by_id($id) : ($this->tag = ArticleTag::find_by_name(trim(urldecode($id))))))) { return redirect_message(array('articles'), array('_flash_message' => '找不到該筆資料。')); } if (in_array($this->uri->rsegments(2, 0), array('edit', 'update', 'destroy', 'sort'))) { if (!(($id = $this->uri->rsegments(4, 0)) && ($this->article = Article::find_by_id($id)))) { return redirect_message(array('articles', $this->tag->id, 'articles'), array('_flash_message' => '找不到該筆資料。')); } } $this->add_js(resource_url('resource', 'javascript', 'jquery-timeago_v1.3.1', 'jquery.timeago.js'))->add_js(resource_url('resource', 'javascript', 'jquery-timeago_v1.3.1', 'locales', 'jquery.timeago.zh-TW.js')); }
function __construct() { parent::__construct(); }
function __construct() { parent::__construct(); $this->template->set_js('php.min.js'); $this->template->set_js('administracao.js'); }
public function __construct() { parent::__construct(); $this->add_js(resource_url('resource', 'javascript', 'jquery-timeago_v1.3.1', 'jquery.timeago.js'))->add_js(resource_url('resource', 'javascript', 'jquery-timeago_v1.3.1', 'locales', 'jquery.timeago.zh-TW.js'))->add_param('_method', $this->get_class()); }
public function __construct() { parent::__construct(); $this->load->model('produtos_model'); $this->load->model('blogs_model'); }
public function __construct() { parent::__construct(); $this->add_param('_method', $this->get_class()); }