Home >Backend Development >PHP Tutorial >A brief discussion on cross-controller tuning core architecture design

A brief discussion on cross-controller tuning core architecture design

巴扎黑
巴扎黑Original
2017-06-12 13:46:221215browse

This article mainly introduces the method of thinkphp3.2 to realize cross-controller calling of other modules. It analyzes the common operation skills of thinkPHP cross-module and cross-controller calling methods in the form of examples. Friends in need can refer to the examples in this article. Introduced thinkphp3.2 to realize the method of calling other modules across controllers. I share it with you for your reference. The details are as follows: Thinphp has methods for calling each other in the frontend and backend, which can save duplicate content. $hello = new \Admin\Common\Fun\hello(); $hello->hehe(); calls methods elsewhere in the same way. The module name can be omitted if it is in the same controller. For example, calling a method of a class in common: $hello = new \Common\Fun\hello(); $hello->hehe(); The framework provides cross-module and controller A() method class GoodsContro

1. Detailed explanation of thinkphp3.2's implementation of cross-controller calls to other Module methods

A brief discussion on cross-controller tuning core architecture design

Introduction: This article mainly introduces thinkphp3.2 to implement cross-controller calls to other Module methods, combined with examples, analyze the common operating techniques of thinkPHP cross-module and cross-controller calling methods. Friends in need can refer to

2. Yii2 Framework Basics Learning - Controller yii Call method yii2 across controllers Call yii across controllers Set default control

Introduction: Controller, yii: Yii2 Framework Basics Learning - Controller: For related installation and configuration, please refer to the Chinese documentation, just follow it step by step. Here is a brief summary of what I have learned over the past few days. 1. Yii application structure: Each application has an entry script web/index.php, which is the only accessible PHP script in the entire application. The process of an application processing a request is as follows: 1. The user initiates a request to the entry script web/index.php. 2. The entry script loads the application configuration and creates an application instance to handle the request. 3. The application parses the requested route through the request component

[Related Q&A recommendations]:

The above is the detailed content of A brief discussion on cross-controller tuning core architecture design. 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