这篇文章主要介绍了关于php6.0 首页增加题库栏目 ,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下
1、修改 index.php和product.php 两个代码都一样子
<?php
# metinfo enterprise content management system
# copyright (c) metinfo co.,ltd (http://www.metinfo.cn). all rights reserved.
define('m_name', 'product');
define('m_module', 'web');
define('m_class', 'product');
define('m_action', 'doproduct_examination');
require_once '../app/system/entrance.php';
# this program is an open source system, commercial use, please consciously to purchase commercial license.
# copyright (c) metinfo co., ltd. (http://www.metinfo.cn). all rights reserved.
?>
define('m_action', 'doproduct_examination');
路径:\app\system\product\web product.class.php
//新增 题库试卷列表网页
public function doproduct_examination(){
global $_m;
require_once $this->template('tem/product_examination');
}
require_once $this->template('tem/product_examination');
模板路径:\templates\metv6 product_examination.php
相关推荐:
php5.5到php7.2新特性整理
以上就是php6.0 首页增加题库栏目 的详细内容。