英文站推荐程序: Magento、Prestashop、ZenCart、OpenCart、EcShop
系统结构流程:
--> index.php
--> include/application_top.php 加载系统配置参数,生成全局常量。
--> include/templates/fc1/common/html_header.php 加载用户模板下的 html_header.php 此文件处理 <header></header>部分代码。包括title、css、js
--> include/templates/fc1/common/main_template_vals.php 通过HTTP_GET的 main_page 参数 引入require() 需要的脚本。
--> include/templates/fc1/common/tpl_main_page.php 整个网站的布局控制所在。
<body>
--> include/templates/fc1/common/tpl_header.php 处理header部分。
--> include/templates/fc1/common/tpl_footer.php 处理html 布局的页面脚本。
--> include/temlates/fc1/footer.php 页面运行时间计算。
</body>
--> include/application__bottom.php 清理操作。
摘自:http://www.ezencart.com/wp-content/uploads/2013/05/zencart.jpg
摘自:http://www.ezencart.com/pages/1062.html
关于zencart系统的结构
zencart属于 MVC 结构的框架,单一入口程序。
默认的zencart 由五个部分组成:
页面头部--> includes\templates\你的模板名\common\tpl_header.php
页面主体--> includes\templates\你的模板名\common\tpl_main_page.php
主体分为左中右
左边框--> includes\modules\column_left.php
中间部分模块--> includes\templates\你的模板名\common\main_template_vars.php
右边框--> includes\modules\column_right.php
页面底部 --> includes\templates\你的模板名\common\tpl_footer.php
zencart模板结构
buttons zencart网上按钮。
common 公共部分。
images 图片
css css文件。
sideboxes 左右两侧
自己探索的index.pxp 流程
index.php 第三步:
includes/modules/pages/shopping_cart/header_php.php
includes/modules/require_languages.php
index.php 第4步:
includes/templates/lgy121/common/html_header.php
includes/modules/meta_tags.php
includes/templates/lgy121/common/tpl_gpe_module.php
index.php 第5步:
includes/templates/template_default/common/main_template_vars.php
$body_code = includes/templates/lgy121/templates/tpl_checkout_default.php
//E:\web\rb-home\includes\init_includes\init_category_path.php
$this_is_home_page 确定当前页面是主页还是产品页。主页显示true
index.php 第7步
includes/templates/lgy121/common/tpl_main_page.php
--> includes/templates/lgy121/common/tpl_header.php
--> includes/templates/lgy121/templates/tpl_search_header.php
--> includes/modules/column_left.php
--> includes/templates/lgy121/templates/tpl_checkout_default.php
--> includes/templates/lgy121/templates/tpl_checkout_stacked.php
--> includes/modules/column_right.php
--> includes/templates/lgy121/common/tpl_footer.php
//["dc_redeem_code"]
index.php?main_page=checkout&fecaction=update
浙公网安备 33010602011771号