Table of Contents
A brief description of the plug-in controller function of ThinkPHP3.2.2, a brief description of thinkphp3.2.2
Briefly describe the composition of the controller and the functions of each part
Briefly describe the main functions of the CPU controller
Home Backend Development PHP Tutorial A brief description of the plug-in controller function of ThinkPHP3.2.2, a brief description of thinkphp3.2.2_PHP tutorial

A brief description of the plug-in controller function of ThinkPHP3.2.2, a brief description of thinkphp3.2.2_PHP tutorial

Jul 13, 2016 am 10:23 AM
thinkphp Function controller plug-in

A brief description of the plug-in controller function of ThinkPHP3.2.2, a brief description of thinkphp3.2.2

ThinkPHP supports the calling of plug-in controllers starting from version 3.2.2. You can access the controller defined by a plug-in in the module through a more convenient URL address.

When the plug-in controller variable is passed in the URL, the operation method in the plug-in controller will be automatically located.

The variables of the plug-in controller are set by the parameter VAR_ADDON. The default is addon. For example, we pass it in the URL:

http://serverName/Home/info/index/addon/SystemInfo
Copy after login
Copy after login

Due to the addon parameter being passed in, the User controller here is not the original one

Home/Controller/InfoController.class.php

Copy after login

Instead, the InfoController controller of the SystemInfo plug-in (located under the Home/Addon directory) is called. The file is located at

Home/Addon/SystemInfo/Controller/InfoController.class.php
Copy after login

The definition of the plug-in controller itself is the same as that of an ordinary access controller, for example:

namespace Home\Addon\SystemInfo\Controller;
 class InfoController extends \Think\Controller{
  public function index(){
    echo 'Addon SystemInfo';
  }
 }

Copy after login

In this way, we are visiting

http://serverName/Home/info/index/addon/SystemInfo
Copy after login
Copy after login

will be output

Addon SystemInfo
Copy after login

If our plug-in directory is not Addon, but Plugin, then it needs to be defined in the configuration file:

'VAR_ADDON'  =>  'plugin'
Copy after login

Then the access URL address becomes

http://serverName/Home/info/index/plugin/SystemInfo
Copy after login

It should be noted that: Currently, the plug-in controller only supports module plug-in controller access, and does not yet support global public plug-ins.

Briefly describe the composition of the controller and the functions of each part

Basic components of PLC:
1. Central processing unit: receives and processes data; receives the status and data of on-site input equipment by scanning; self-diagnoses; completes logical arithmetic operation tasks specified in the user program.
2. Memory: There are three types of RAM, EPROM, and EEPROM
EPROM: stores system programs, read-only memory, cannot be changed.
RAM: Stores I/O images and various soft devices. It is a read-write memory with fast storage speed.
EEPROM: It is an erasable read-only memory.
3. Input/output (I/O) interface: It is the connection component between the CPU and field (I/0) devices or other external devices.
4. Power supply:
5. The programmer is used for compiling, editing, debugging, checking and monitoring of user programs.

Briefly describe the main functions of the CPU controller

CPU Principle
The main function of the CPU is to execute programs stored in the main memory, that is, machine instructions. The CPU is composed of a controller and arithmetic unit.
Overview of this Chapter
The focus of this chapter is: the basic components of the CPU and Instruction flow. This involves the core issues of establishing the concept of the whole machine: how the CPU executes instructions, how the computer stores information, and how to control input/output.
1. The basic composition of the CPU
2. Formulate the instruction flow
1. The basic composition of the CPU
When understanding the composition of the CPU, you need to grasp the following points:
(1) ALU component, and its input and output methods.
(2) Used for calculations A set of registers R0-R3 or temporary registers C, D, Z
(3) A set of registers used for control: instruction register IR, program counter PC, program status word register PSW
(4) and A set of registers related to memory access: memory address register MAR, memory data status word register MDR, stack pointer SP
(5) The connection method of the internal bus line, how to send information to it, and how it outputs information
( 6) How the CPU connects to the main memory and I/O devices through the system bus line
Section 3.3.1 gives a simplified internal composition model of the CPU, which is the basis for formulating the instruction process.
2. Formulated Instruction flow
Instruction flow embodies a core content in the working principle of computers: how the CPU executes program instructions. The assessment method is to give a specific instruction, with the internal composition of the model machine CPU as the background, and use instruction sentences to describe its reading and execution. Process. The key is to master the implementation process of several basic addressing methods, distinguish who is the source address, who is the destination address, and what the operation code is
For example: draw up the instruction MOV -(SP),X(R0) Reading and execution process.
Learning content:
3.1 Arithmetic logic operation component ALU
3.2 Operation method
3.3 The composition of the CPU model and its data path
3.4 Timing control method
3.5 Execution of instructions and combinational logic controller
3.6 Microprogrammed controller
Learning objectives:
Understand the logical formula and structure of the full adder, the parallel adder and the carry chain used, and multi-functional arithmetic and logical operations Functions of component SN74181.
Master the initial code fixed-point addition and subtraction operations, shift operations, understand floating point addition and subtraction operations, decimal addition operations, master unsigned integer one-bit multiplication and understand its logical implementation, and master unsigned integers One-digit division, understand floating point multiplication and division operations.
Learning goals:
Master the basic components of the model machine, data path and data transmission, master the basic form of micro-commands.
Understand the functions of the controller, master the instructions The working principle of process and combinational logic controller.
Master the concept of micro-program control, understand the encoding method and sequence control method of micro-instructions, and understand the format of micro-instructions.
Key points and difficulties:
Complementary code fixed-point addition Subtraction operations, unsigned integer one-bit multiplication and division. (Difficulty)
The basic composition of the model machine, data path and data transmission, and the basic form of microcommands.
The instruction flow and the working principle of the combinational logic controller .(Key points)
Class schedule:
9 classes.
Media use:
Use multimedia projection, mainly using electronic teaching plans prepared by PowerPoint.
§ 3.1 Arithmetic and logical operation component ALU
ALU is a powerful combinational logic circuit, sometimes called a multi-functional function generator.
The core of ALU is the adder.
ALU mainly completes fixed-point arithmetic operations and logical operations on binary codes.
§ 3.1.1 Adding unit
Full adder and half adder:
An An-1…Ai…A2 A1 A0
Bn Bn-1…Bi…B2 B1 B0
+ Cn Cn-1…Ci…C2 C1 C0
The full adder is an adder unit that considers three inputs, and the half adder is an adder unit that considers two inputs.
Full addition sum ∑i + carry to high bit Ci
The carry Ci sent in from the low bit
Input quantity
Output quantity
Use a half adder to form a full adder
(1) Half-add summation can be implemented with an XOR gate:
Half-add Sum = AiOBi (logical formula of half adder)
Half adder is also called XOR gate
(2) Full adder = two half adders, its logical formula:
∑i=AiOBiOCi
C i+1=AiBi+(AiOBi)Ci
Because there is a delay time in logic gate circuits, the full adder circuit is a delay component, and its characteristics will affect the speed of the full adder.
+
+
+
+
+
§ 3.1.2 Parallel adder and carry chain structure
Parallel adder: It uses an n-bit full adder to realize two n-bit operands at the same time Add up, the rest of the text>>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/840748.htmlTechArticleA brief description of the plug-in controller function of ThinkPHP3.2.2, a brief description of thinkphp3.2.2 ThinkPHP supports it starting from version 3.2.2 The call of the plug-in controller can be accessed through a more convenient URL address to a certain point in the module...
Statement of this Website
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

The difference between vivox100s and x100: performance comparison and function analysis The difference between vivox100s and x100: performance comparison and function analysis Mar 23, 2024 pm 10:27 PM

Both vivox100s and x100 mobile phones are representative models in vivo's mobile phone product line. They respectively represent vivo's high-end technology level in different time periods. Therefore, the two mobile phones have certain differences in design, performance and functions. This article will conduct a detailed comparison between these two mobile phones in terms of performance comparison and function analysis to help consumers better choose the mobile phone that suits them. First, let’s look at the performance comparison between vivox100s and x100. vivox100s is equipped with the latest

How to run thinkphp project How to run thinkphp project Apr 09, 2024 pm 05:33 PM

To run the ThinkPHP project, you need to: install Composer; use Composer to create the project; enter the project directory and execute php bin/console serve; visit http://localhost:8000 to view the welcome page.

There are several versions of thinkphp There are several versions of thinkphp Apr 09, 2024 pm 06:09 PM

ThinkPHP has multiple versions designed for different PHP versions. Major versions include 3.2, 5.0, 5.1, and 6.0, while minor versions are used to fix bugs and provide new features. The latest stable version is ThinkPHP 6.0.16. When choosing a version, consider the PHP version, feature requirements, and community support. It is recommended to use the latest stable version for best performance and support.

Share three solutions to why Edge browser does not support this plug-in Share three solutions to why Edge browser does not support this plug-in Mar 13, 2024 pm 04:34 PM

When users use the Edge browser, they may add some plug-ins to meet more of their needs. But when adding a plug-in, it shows that this plug-in is not supported. How to solve this problem? Today, the editor will share with you three solutions. Come and try it. Method 1: Try using another browser. Method 2: The Flash Player on the browser may be out of date or missing, causing the plug-in to be unsupported. You can download the latest version from the official website. Method 3: Press the "Ctrl+Shift+Delete" keys at the same time. Click "Clear Data" and reopen the browser.

What exactly is self-media? What are its main features and functions? What exactly is self-media? What are its main features and functions? Mar 21, 2024 pm 08:21 PM

With the rapid development of the Internet, the concept of self-media has become deeply rooted in people's hearts. So, what exactly is self-media? What are its main features and functions? Next, we will explore these issues one by one. 1. What exactly is self-media? We-media, as the name suggests, means you are the media. It refers to an information carrier through which individuals or teams can independently create, edit, publish and disseminate content through the Internet platform. Different from traditional media, such as newspapers, television, radio, etc., self-media is more interactive and personalized, allowing everyone to become a producer and disseminator of information. 2. What are the main features and functions of self-media? 1. Low threshold: The rise of self-media has lowered the threshold for entering the media industry. Cumbersome equipment and professional teams are no longer needed.

How to run thinkphp How to run thinkphp Apr 09, 2024 pm 05:39 PM

Steps to run ThinkPHP Framework locally: Download and unzip ThinkPHP Framework to a local directory. Create a virtual host (optional) pointing to the ThinkPHP root directory. Configure database connection parameters. Start the web server. Initialize the ThinkPHP application. Access the ThinkPHP application URL and run it.

What are the functions of Xiaohongshu account management software? How to operate a Xiaohongshu account? What are the functions of Xiaohongshu account management software? How to operate a Xiaohongshu account? Mar 21, 2024 pm 04:16 PM

As Xiaohongshu becomes popular among young people, more and more people are beginning to use this platform to share various aspects of their experiences and life insights. How to effectively manage multiple Xiaohongshu accounts has become a key issue. In this article, we will discuss some of the features of Xiaohongshu account management software and explore how to better manage your Xiaohongshu account. As social media grows, many people find themselves needing to manage multiple social accounts. This is also a challenge for Xiaohongshu users. Some Xiaohongshu account management software can help users manage multiple accounts more easily, including automatic content publishing, scheduled publishing, data analysis and other functions. Through these tools, users can manage their accounts more efficiently and increase their account exposure and attention. In addition, Xiaohongshu account management software has

Learning Laravel from scratch: Detailed explanation of controller method invocation Learning Laravel from scratch: Detailed explanation of controller method invocation Mar 10, 2024 pm 05:03 PM

Learning Laravel from scratch: Detailed explanation of controller method invocation In the development of Laravel, controller is a very important concept. The controller serves as a bridge between the model and the view, responsible for processing requests from routes and returning corresponding data to the view for display. Methods in controllers can be called by routes. This article will introduce in detail how to write and call methods in controllers, and will provide specific code examples. First, we need to create a controller. You can use the Artisan command line tool to create

See all articles