这篇文章主要介绍了关于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

立即学习“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
相关推荐:
以上就是php6.0 首页增加题库栏目 的详细内容,更多请关注php中文网其它相关文章!
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号