Home  >  Article  >  Backend Development  >  Add question bank column to php6.0 homepage

Add question bank column to php6.0 homepage

不言
不言Original
2018-05-08 10:39:091954browse

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(&#39;M_NAME&#39;, &#39;product&#39;);
define(&#39;M_MODULE&#39;, &#39;web&#39;);
define(&#39;M_CLASS&#39;, &#39;product&#39;);
define(&#39;M_ACTION&#39;, &#39;doproduct_examination&#39;);
require_once &#39;../app/system/entrance.php&#39;;

# 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(&#39;tem/product_examination&#39;);
	}

require_once $this->template('tem/product_examination' );

Template path:\templates\metv6 product_examination.php

Related 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:TP5 import databaseNext article:TP5 import database