ThinkPHP in Action
Tags
Summary
Editor's review
Who it's for
A good fit for
- 已掌握PHP语法基础、想学习框架开发的在读学生与自学者
- 需要快速上手ThinkPHP、承接中小型Web项目的初中级程序员
- 讲授PHP框架课程的大中专院校教师与培训机构讲师
- 从前端或其他语言转做PHP全栈开发、想了解MVC项目组织的开发者
Not a good fit for
- 完全零编程基础、尚未写过PHP代码的读者
- 只使用ThinkPHP 6/8最新版本、要求代码即抄即用的开发者
- 已能独立架构大型PHP分布式系统的高级工程师
Reading tips
- 先按第1至第5章顺序打通环境搭建、配置、路由、控制器、模型的完整链路,再按兴趣跳读后续章节。
- 边读边敲代码,用UPUPW或LNMP自行搭建本地环境,每章示例跑通后再往下学。
- 把四个实战项目至少完整跟做一个,练习从设计表结构到部署上线的全流程。
- 开发新项目时对照ThinkPHP官方新版本文档,注意版本差异带来的写法变化。
About the publisher
Founded in 1980, Tsinghua University Press has 57 titles in our collection, covering popular science, medicine, health, law, philosophy and social sciences. Representative works include medical popular-science books such as Cancer Truth: Doctors Are Reading It Too and New Knowledge on Cancer by Bo Luo (Li Zhizhong), legal titles such as Sunshine Is the Best Preservative: Express Delivery of Major Global Anti-Corruption Cases, and works like Qi Ge's A Brief History of Philosophy with Big Ideas and Liu Yunhao's From the Internet to a New Industrial Revolution. Its authors include science writers, medical researchers, the Renmin University of China anti-corruption master's class and university scholars, reflecting a publishing profile that balances academic seriousness with accessible reading. As public information is limited, this profile is based only on the titles in our collection.
Contents
- Chapter 1 Getting Started with ThinkPHP
- 1.1 Overview of the MVC Pattern
- 1.2 What Is ThinkPHP
- 1.3 Setting Up a PHP Development Environment (UPUPW, PHPStorm, Virtual Hosts)
- 1.4 Your First ThinkPHP Program
- 1.5 Application Structure Explained (Directories, Entry File, Modules, Controllers)
- Chapter 2 Configuration
- 2.1 Configuration Types (Default, Common, Mode, Debug, Scenario, Module, Extension, Dynamic)
- 2.2 Configuration Operations (The C Function, Reading, Loading Extension Configuration, Writing)
- Chapter 3 Routing
- 3.1 The Three URL Modes (Dynamic, Static, Pseudo-static)
- 3.2 ThinkPHP Routing (Routing Modes, Route Configuration)
- Chapter 4 Controllers
- 4.1 Defining a Controller
- 4.2 Before and After Actions
- 4.3 Action Parameter Binding
- 4.4 Pseudo-static and URL Case Sensitivity
- 4.6 URL Generation (Address Expressions, Parameters, Pseudo-static Suffixes, Route Addresses)
- 4.7 Ajax Responses
- 4.8 Redirects and Page Jumps
- 4.9 HTTP Request Methods and Reading Input
- 4.11 Empty Actions and Empty Controllers
- Chapter 5 Models
- 5.1 Preparation
- 5.2 Defining a Model
- 5.3 Instantiating a Model
FAQ
这本书对应ThinkPHP的哪个版本?
没有PHP基础能直接读吗?
书里的项目示例是哪些?
这本书有新版吗?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.
About the author
Xia Lei is a book author about whom limited public information is available. The only work currently attributed to this name is Photoshop CC: From Beginner to Mastery (Full-Color Value Edition), a title in the software-learning category aimed at readers who want to master Photoshop CC operations systematically. Judging from this work, Xia Lei's writing leans toward practical reference books: software functions serve as the thread, supported by full-color illustrations and step-by-step instructions that help beginners move from basic entry to fuller skills. The book follows a progressive from-beginner-to-mastery structure, covering interface familiarity, tool use, and hands-on case exercises, making it suitable for self-study and classroom reference. Since the author's personal background and professional experience are not publicly disclosed, no speculation is made here; this introduction is based solely on the available work and category information.