我想建一个index模块
control目录下面,新建:index.php
内写:class indexControl extends BaseIndexControl{}
再去写个BaseIndexControl父类;
模板:
/templates/deafult/
layout 下面新建index_layout.php文件
新建index文件夹并在其目录里面新建index.php作为模板文件;
这就是shopnc的业务逻辑与模板架构。
本文介绍如何在ShopNC中创建index模块。具体步骤包括在control目录下建立index.php文件,并定义indexControlextendsBaseIndexControl类。此外,还需创建BaseIndexControl父类,并在/templates/deafult/layout目录下建立index_layout.php文件以及index文件夹内的index.php模板文件。
我想建一个index模块
control目录下面,新建:index.php
内写:class indexControl extends BaseIndexControl{}
再去写个BaseIndexControl父类;
模板:
/templates/deafult/
layout 下面新建index_layout.php文件
新建index文件夹并在其目录里面新建index.php作为模板文件;
这就是shopnc的业务逻辑与模板架构。

被折叠的 条评论
为什么被折叠?
