Пример #1
0
 public function add()
 {
     $catid = (int) $this->input->get('catid');
     if ($catid == 0 || $this->get_cache('module-' . SITE_ID . '-' . APP_DIR, 'category', $catid, 'child')) {
         $this->template->assign(array('error' => $error, 'verify' => 0, 'myfield' => $this->field_input($this->get_cache('module-' . SITE_ID . '-' . APP_DIR, 'field'), $data, TRUE), 'meta_name' => lang('mod-00')));
         $this->template->display('content_category.html');
     } else {
         parent::add();
     }
 }
Пример #2
0
 /**
  * 构造函数
  */
 public function __construct()
 {
     parent::__construct();
 }