Tag

Behavior

1 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Mar 25, 2023 · Backend Development

ThinkPHP Hook Behaviors: Concepts, Usage Examples, and Implementation

This article explains the concept of ThinkPHP Hook behaviors, demonstrates how to define custom behavior classes, bind them to tags using Hook::add, trigger them with Hook::listen, and configure tag bindings in tags.php, providing complete code examples for a login scenario.

BehaviorHookThinkPHP
0 likes · 6 min read
ThinkPHP Hook Behaviors: Concepts, Usage Examples, and Implementation
php中文网 Courses
php中文网 Courses
Mar 1, 2021 · Backend Development

ThinkPHP Framework Execution Process Overview

This article outlines the ThinkPHP framework’s execution flow, detailing the sequence from index.php entry through configuration loading, application generation, class loading, controller action execution, and template rendering, and highlights key classes such as Think\Hook and Think\Behavior.

BehaviorHookPHP
0 likes · 2 min read
ThinkPHP Framework Execution Process Overview
php中文网 Courses
php中文网 Courses
Nov 2, 2020 · Backend Development

Using Hook Behaviors in ThinkPHP: A Practical Guide

This article explains the concept of ThinkPHP Hook behaviors, demonstrates how to define, bind, and trigger custom behavior classes with code examples, and shows how to decouple login logic using event‑like hooks for more maintainable backend development.

BackendBehaviorDecoupling
0 likes · 6 min read
Using Hook Behaviors in ThinkPHP: A Practical Guide