thinkphp,magento2,yii,ci等后台框架相关知识与拓展
摘要:废话少说直接上代码 1.创建对象管理器 $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); 2.引入block方法,create()里的参数填的路径你想调用方法的文件路径 $categoryRepository
阅读全文
摘要:开了生产模式之后一直报错误,就是什么都不懂,手贱打开的 php bin/magento deploy:mode:set production (这条命令一定要慎用) 上网查了一下,原来开启生产模式,maintenance功能会开启,直接关闭,清缓存就OK,以下是步骤 首先: cmd 切换到magen
阅读全文
摘要:#MGS Brands (用于设置品牌产品模块) #MGS Megamenu(用于添加主分类栏:类型京东主页的商品分类) #MGS Promo Banner(用于设置促销横幅) 在设置后台"Text Align"属性时,不要选择default要不然前端页面会没有显示 #MGS Blog (用于设置博
阅读全文
摘要:错误Illegalschemesupplied,onlyalphanumericcharactersarepermitted 检查数据库表"core_config_data",对应的"web/unsecure/base_url,web/secure/base_url"的值,即网站路径有没有前面有没加
阅读全文
摘要:#页面的快速布局 设置页面布局 在<head>中包含静态资源(JavaScript,CSS,字体) 删除<head>中的静态资源(JavaScript,CSS,字体) 创建一个容器 引用一个容器 创建一个块 设置一个块的模板 修改块参数 引用一个块 使用块对象方法来设置块属性 重新排列元素 删除元素
阅读全文
摘要:#开启模板定位 1. 找到 Stores > Configuration > ADVANCED > Developer 2. 在Debug tab栏里设置 Template Path Hints for storefront 和 Template Path Hints for Admin 为 YES
阅读全文
摘要:magento 数据库配置文件路径 #app/etc/env.php magento前端主页样式路径 # pub/static/frontend/(template)/(theme)/(language)/css 插件安装路径 # app/code 前端主页模板路径 # app/code/MGS/(
阅读全文