开启 php_com_dotnet.dll GUID生成
C:\Windows\System32\drivers\etc\HOSTS
127.0.0.1 ww.yiparts.cn
ServerAdmin ww.yiparts.cn:8096
ServerName ww.yiparts.cn:8096
DocumentRoot "D:/www/YPB2C/home"
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
--mvc
--shop 店铺
--system 店铺系统
--module 店铺模块
--ShopBase.class.php 店铺基本信息
--ShopItem.class.php 店铺配件接口
--module.config.php 所有模块的配置
[
'shopSort'=>[
'title'=>'配件分类',
'tpl'=>'item/sort.php',
'data'=>['class'=>'ShopBase', 'function'=>'getshopSort']
],
'itemTop'=>[
'title'=>'配件排行',
'tpl'=>'item/top.php',
'data'=>['class'=>'ShopItem', 'function'=>'getTopItem'],
'config'=>[
//自定义标题
'title'=>'配件排行',
//是否显示标题 0不显示 1显示【默认】
'titleShow'=>1,
//配件分类,0所有【默认】
'shopSort'=>0,
//价格范围 为空则显示所有 例如[100, 10000]
'price'=>[],
//显示数量 3 4 5 6 8 10
'count'=>5,
//默认显示:sale热销排行 coll收藏排行
'default'=>'sale',
//显示销量 默认显示
'showSale'=>1
]
]
]
--sys.php 店铺模块调用、模板组装
--1 某店铺
--index.php
--page.config.php 店铺页面配置(页面使用哪个框架,框架里调用了哪些模块....)
[
'index/index'=>[
//布局 121:上左右下 111:上中下
'title'=>'首页',
'layout'=>'layout/121.php',
'modules'=>[
//顶部
'top'=>[],
'left'=>[
[
'module'=>'itemTop',
'config'=>[
'title'=>'配件排行',
'titleShow'=>1,
'shopSort'=>0,
'price'=>[],
'count'=>5,
'default'=>'sale',
'showSale'=>1
]
],
[
'module'=>'itemTop',
'config'=>[
'title'=>'配件TOP10',
'titleShow'=>1,
'shopSort'=>0,
'price'=>[100, 1000],
'count'=>10,
'default'=>'sale',
'showSale'=>0
]
]
],
'right'=>[],
'foot'=>[]
]
]
]
--shop.config.php 店铺mvc的基本配置
--tpl 店铺模板
--layout 页面框架
--121.php 上左右下
--111.php 上中下
--index
--index.php 模块的模板