Home > Article > Backend Development > Add question bank column to php6.0 homepage
This article mainly introduces the question bank column added to the homepage of php6.0, which has a certain reference value. Now I share it with everyone. Friends in need can refer to it
1. Modify the codes of index.php and product.php to be the same
<?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');
Path: \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' );Template path:\templates\metv6 product_examination.phpRelated recommendations:
New features from PHP5.5 to PHP7.2
The above is the detailed content of Add question bank column to php6.0 homepage. For more information, please follow other related articles on the PHP Chinese website!