Home>Article>PHP Framework> How to implement facade in thinkphp

How to implement facade in thinkphp

尚
forward
2020-03-31 09:21:07 2681browse

How to implement facade in thinkphp

The main idea is to use call_user_func_array() in conjunction with the container.

The core code and understanding are all in the comments:

 

The following test code

reqeust.php

name; } } ?>

test.php

Recommended tutorial:thinkphp tutorial

The above is the detailed content of How to implement facade in thinkphp. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete