Home Page Icon
Home Page
Table of Contents for
Web Application Development with Yii 2 and PHP
Close
Web Application Development with Yii 2 and PHP
by Jeffrey Winesett, Mark Safronov
Web Application Development with Yii 2 and PHP
Table of Contents
Web Application Development with Yii 2 and PHP
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
Who this book is for
What you need for this book
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Started
A basic application
Installation of a basic application template
Specifics of the basic application template
An advanced application
Installation of an advanced application template
Specifics of the advanced application template
Summary
2. Making a Custom Application with Yii 2
The design stage
Task at hand
Domain model design
Target feature
Initial preparations
Setting up project management
Setting up the testing harness
Setting up the deployment pipeline
Making a web application entry point visible
Introducing the Yii framework into our application
First end-to-end test
Yii 2 installation to the bare code base
Checking the requirements
An introduction to Yii conventions
Building the wireframe code
Adding a controller
Handling possible errors
Making the data and application layers
Defining the customer model at the data layer
Setting up the database
Object-relation mapping in Yii
Decoupling from ORM
Creating the user interface
The Add New Customer UI
Routing 101
Layouts
Finishing the Add New Customer UI
Widgets
The List Customers UI
Customer Query UI
Using the application
Summary
3. Automatically Generating the CRUD Code
Definition of the model to work with
Using Gii
Installing Gii into the application
Generating the code for the Model class
Generating the CRUD code
An overview of the generated CRUD UI
Pros and cons of generated classes over manually created ones
4. The Renderer
Anatomy of Yii rendering
The Yii application components
The View component
Algorithm to find the view files
Algorithm to search the layout file to be used
The internal workings of rendering the view file
Custom renderers
A custom response formatter
The asset bundles
An asset bundle with files from an arbitrary folder
Asset publishing
An asset bundle with files from a web-accessible folder
Registering CSS and JavaScript files manually
Placing JavaScript in different positions in the asset bundles
Making a custom asset bundle for our application
Themes
Making a custom snowy theme
Widgets
Summary
5. User Authentication
Anatomy of the user login in Yii
Password-based login mechanics in general
Making the user management interface
Acceptance tests for the user management interface
Database table to store user records
Generating the model and CRUD code by Gii
Removing the password field from the autogenerated code
Hashing a password upon saving a user record
Functional tests for password hashing
Password hashing implementation inside the active record
Making a user record into an identity
Summary
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Table of Contents
Next
Next Chapter
Web Application Development with Yii 2 and PHP
Web Application Development with Yii 2 and PHP
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset