Yii2 Quickstart Guide
  • Contact
  • Unlock
Download Ebook

Contents

Preface
1. SCOPE
2. YII APPLICATION ARCHITECTURE (MVC)
2.1 Model
2.1.1 CRUD
2.2 View
2.3 Controller
3. INSTALLATION
3.1 Composer
3.2 Advanced Vs. Basic
3.2.1 Advanced Template Features
3.2.1.1 Backend and Frontend
3.2.1.2 Environments
3.2.1.3 Migrations
3.3 Installing via Composer
3.3.1 Install Basic Template
3.3.2 Install Advanced Template
3.4 Configuration Files
3.4.1 Basic Template
3.4.2 Advanced Template
3.4.3 Database Connection
3.5 Initialize Database
3.6 Set Document Root in Server Config
3.6.1 Basic Template Document Root
3.6.2 Advanced Template Document Root
3.6.3 Apache Config Example
3.7 Default Install
3.7.1 Basic Template
3.7.2 Advanced Template Frontend
3.7.3 The Debug Bar
4. DIRECTORY STRUCTURE
4.1 Basic Template Directory Structure
4.2 Advanced Template Directory Structure
5. URL ROUTING
5.1 Default Controller and Action
5.2 Pretty Urls
6. CALLING VIEWS
6.1 Anatomy of a View
6.2 View Layouts
6.2.1 Flash Messages
7. NAMESPACING
7.1 The Use Statement
8. ALIASES
8.1 Commonly Used Predefined Aliases
8.2 Defining Aliases
8.3 Resolving Aliases
8.4 Using Aliases
9. HELLO WORLD
9.1 The Controller File
9.2 The View File
9.3 The Output
9.4 Hello World Using Advanced Template
10. MODELS
10.1 Gii Code Generation Tool
10.1.1 Generate Model Uisng Gii
10.1.2 Generate CRUD Using Gii
10.2 Model Rules
10.2.1 Common Model Rules Explained
10.2.2 Generated Rules
11. CONTROLLER CRUD
11.1 CRUD Basics
11.1.1 CRUD Create
11.1.2 CRUD Read
11.1.3 CRUD Update
11.1.4 CRUD Delete
12. GRIDVIEW
12.1 Sorting
12.2 Filtering
12.3 The Grid Code
12.4 Columns
12.4.1 Data Formats
12.4.1.1 Setting the Format
12.4.2 Column Labels
12.4.2.1 Yii Automatically Creates Labels
12.4.2.2 attributeLabels Method
12.4.2.3 Label Shorthand
12.4.2.4 Label Longhand
12.4.3 Editing Action Column
12.5 The Data Provider
12.5.1 Data Provider and the Controller
12.5.2 The Search Model
13. DETAILVIEW
13.1 The DetailView Code
13.2 Specify Label and Data Format
14. ACTIVE FORM
14.1 The Active Form Code
14.2 The Resulting HTML From Code
14.3 Initialize Active Form
14.3.1 Setting the Form Action Value
14.3.2 Setting the Form ID
14.3.3 Setting the Form Submission Method
14.3.4 Other Form Tag Attributes
14.4 Active Form Fields
14.4.1 Text Input Field
14.4.1.1 Specify Text Input Field Attributes
14.4.2 Text Area
14.4.3 Dropdown List
14.4.3.1 Multi Select List Box
14.4.3.2 Option Grouping
14.4.4 ListBox
14.4.5 Checkbox
14.4.6 Radio Buttons
14.4.7 Checkbox List
14.4.8 Password Field
14.4.9 Hidden Field
14.4.10 Submit Button
14.4.11 HTML 5 Fields
14.4.11.1 Email Input Field
14.4.11.2 Number Input Field
14.4.11.3 Range
14.4.11.4 Min Max
14.5 Extra Controls
14.5.1 Form Field Label
14.5.2 Form Field Hint
14.5.3 isNewRecord
14.6 Form Validation Feedback
15. RECORD CREATE AND UPDATE
15.1 Controller Namespace
15.2 Controller Actions
15.2.1 Create New Record
15.2.2 Updateing Exisitng Record
15.3 Load Submitted Data
15.3.1 Post Data
15.3.1.1 Anatomy of Post Data
15.3.2 Load Data Into Model
15.4 Validate Data
15.5 Saving the Submitted Data
16. USER AUTHENTICATION
16.1 Restricting Access to Actions
16.1.1 The Only Attribute
16.1.2 The Except Attribute
16.2 User Identity
16.3 isGuest
16.4 RBAC
16.4.1 The Basics
16.4.2 Specify Manager Type
16.4.3 Create RBAC Directory
16.4.4 Configure authManager
16.4.5 Create Items File
16.4.5.1 The Migration File
16.4.6 Assignment File
16.4.6.1 Adding Users to Assignment
16.4.7 Setting the Access Control
17. CONCLUSION



  • Home
  • Unlock Content

Unlock Content

Please enter your unlock code to unlock the content:

If you unlocked through Paypal, this would be your Paypal email address..

Some content on this site is locked and requires a small one time donation of $3.50 to access.

© JB McKee 2016