admin/controller/extension/d_blog_module/category.php
(开头部分) 32KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class ControllerExtensionDBlogModuleCategory extends Controller {
private $codename = 'd_blog_module';
private $error = array();
private $setting = '';
private $sub_versions = array('lite', 'light', 'free');
private $config_file = '';
public function __construct($registry) {
parent::__construct($registry);
$this->load->model('extension/module/d_blog_module');
$this->load->model('extension/d_opencart_patch/url');
$this->load->model('extension/d_opencart_patch/user');
$this->load->model('extension/d_opencart_patch/load');
$this->config_file = $this->model_extension_module_d_blog_module->getConfigFile($this->codename, $this->sub_versions);
$this->setting = $this->model_extension_module_d_blog_module->getConfigData($this->codename, $this->codename.'_setting', $this->config->get('config_store_id'),$this->config_file);
$this->d_admin_style = (file_exists(DIR_SYSTEM.'library/d_shopunity/extension/d_admin_style.json'));
if ($this->d_admin_style){
$this->load->model('extension/d_admin_style/style');
$this->model_extension_d_admin_style_style->getStyles('light');
}
}
public function index() {
$this->load->model('extension/d_blog_module/category');
$this->load->language('extension/d_blog_module/category');
$this->document->setTitle($this->language->get('heading_title'));
$this->model_extension_module_d_blog_module->updateTables();
$this->getList();
}
public function add() {
$this->load->language('extension/d_blog_module/category');
$this->document->addStyle('view/javascript/summernote/summernote.css');
$this->document->addScript('view/javascript/summernote/summernote.js');
$this->document->setTitle($this->language->get('heading_title'));
$this->load->model('extension/d_blog_module/category');
if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validateForm('add_categories')) {
if(empty($this->request->post['custom'])){
$this->request->post['setting'] = '';
}
$this->model_extension_d_blog_module_category->addCategory($this->request->post);
$this->session->data['success'] = $this->language->get('text_success');
$url = $this->getUrl();
$this->response->redirect($this->model_extension_d_opencart_patch_url->link('extension/d_blog_module/category', $url));
}
$this->getForm();
}
public function edit() {
后面还有 677 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
