Mastering Yii : advance your modern web application development skills with Yii Framework 2 /
Charles R. Portwood II.
- 1 online resource (1 volume) : illustrations.
- Community experience distilled .
- Community experience distilled. .
Includes index.
Cover ; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Composer, Configuration, Classes, and Path Aliases ; Composer; Configuration; Requirements checker; Entry scripts; Web entry script; Configuration files; Web and console configuration files; Database configuration; Parameter configuration; Environment configuration; Setting up our application environment; Setting the web environment for NGINX; Setting the web environment for Apache; Components and objects; Components; Objects; Path aliases; Summary Chapter 2: Console Commands and Applications Configuration and usage; Entry script; Configuration; Setting the console environment; Running console commands; Built-in console commands; The help command; The asset command; The cache command; The fixture command; The Gii command; The message command; The migration command; Creating console commands; Generating help information; Passing command-line arguments; Exit codes; Formatting; Summary; Chapter 3: Migrations, DAO, and Query Building ; Connecting to databases; Additional configuration options; Writing database migrations An overview of schemaWriting migrations; Running migrations; Altering a database schema; Database access objects; Querying for data; Quoting table and column names; Executing queries; Parameter binding; Transactions; Query Builder; Query construction methods; The select method; The from method; The where method; Ordering results; Limiting and offsetting data; Grouping and having; Joins and unions; Executing queries; Examining queries; Iterating over query results; Data providers and data widgets; Data replication and load balancing; Summary; Chapter 4: Active Record, Models, and Forms Configuring GiiGii for web applications; Gii for console applications; Active Record; The Active Record pattern; Creating Active Record classes; Creating active record classes with Gii; Working with Active Record; Model validation rules; Adding custom validators; Customizing validator error messages; Working with validation errors; Manually executing validation rules; Model attribute labels; Active Record relationships; Using multiple database connections with Active Record; Behaviors in Active Record; Working with Active Record; Querying data; Saving data; Deleting data; Active Record events ModelsModel attributes; Scenarios; Forms; Generating forms with Gii; Generating forms with Gii's web interface; Generating forms with Gii's console interface; Using forms; ActiveForm and input types; Summary; Chapter 5: Modules, Widgets, and Helpers ; Modules; Module components; The module class structure; Controllers; Views and layouts; Registering modules; Accessing modules; Managing modules with Composer; Modules in summary; Widgets; Using widgets; Commonly used built-in widgets; Bootstrap widgets; jQuery UI widgets; Yii-specific widgets; Creating custom widgets; A summary of widgets
Annotation Advance your modern web application development skills with Yii Framework 2About This Book Learn to work with the key aspects of Yii Framework 2 Explore how to create RESTful APIs with Yii Incorporate codeception with Yii2 to test your code thoroughlyWho This Book Is ForThis book is for Yii Framework developers who want to quickly master Yii2. This book assumes some familiarity with Yii2, PHP 5, and HTML5. What You Will Learn Explore Yii2's conventions and learn how to properly configure Yii2 Create both web and console applications Reduce development time by learning to create classes automatically with Gii, Yii2's automatic code generation tool Use Yii2's database migration tool Manage and access databases with Active Record, DAO, and Query Builder Handle user authentication and authorization within Yii2 Create RESTful APIs with Yii Framework 2 Test applications automatically with codeceptionIn DetailThe successor of Yii Framework 1.1, Yii2 is a complete rewrite of Yii Framework, one of the most popular PHP 5 frameworks for making modern web applications. The update embraces the best practices and protocols established with newer versions of PHP, while still maintaining the simple, fast, and extendable behavior found in its predecessor. This book has been written to enhance your skills and knowledge with Yii Framework 2. Starting with configuration and how to initialize new projects, you'll learn how to configure, manage, and use every aspect of Yii2 from Gii, DAO, Query Builder, Active Record, and migrations, to asset manager. You'll also discover how to automatically test your code using codeception. With this book by your side, you'll have all the skills you need to quickly create rich modern web and console applications with Yii2. Style and approach This book is a step-by-step guide to mastering every aspect of Yii Framework 2. Each chapter outlines a new set of tools along with code that can be used to efficiently create modern web and console applications.
9781785888649 1785888641
CL0500000715 Safari Books Online D2593935-570C-4CBE-9E86-7BFE9911A861 OverDrive, Inc. http://www.overdrive.com
GBB799023 bnb
018010644 Uk
Web applications--Development. Software frameworks. COMPUTERS--Software Development & Engineering--Tools. Software frameworks.