Blogger Information
Blog 40
fans 0
comment 0
visits 45771
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Thinkphp5.0 笔记
无須終有的博客
Original
759 people have browsed it

    1.调用视图
        使用 return $this->fetch();  前提是引入thinkController  继承 class index extends Controller{}

    2.页面跳转
        {:url('Index/index)}
    
    3.定义 视图输出字符串内容替换  例如:__PUBLIC__
        config.php  文件中的 'view_replace_str'   添加例如: '__PUBLIC__'     =>'/static',

    4.页面t跳转链接
        {:url(index/index)};

    5.页面的布局
    在vies目录下创建一个common目录放公共的heater 和 footre  在需要的页面{include file="common/header" /}

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