Blogger Information
Blog 9
fans 0
comment 0
visits 8788
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
2-教学管理系统
phpgit的博客
Original
823 people have browsed it

1.

建立一个Base.php  基类

<?php
namespace app\index\controller;
use think\Controller;

class Base extends Controller
{
   
}

QQ截图20180121235845.png

index.php 

<?php
namespace app\index\controller;
use app\index\controller\Base;

class Index extends Base
{
    public function index()
    {
        return $this->view->fetch();
    }
}

QQ截图20180122000331.png

分离模板  meta  header menu  footer

{include file="public/footer" /}

QQ截图20180122002934.png


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post