O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Yii2 Application Development Solutions- Volume 1

Video Description

Explore the fundamentals of the Yii2 framework to reproduce them in your environment and create modern web applications quickly

About This Video

  • Exploit the core features of Yii2 efficiently through clear examples, and see how to use tests, create reusable code snippets, core widgets, and more

  • This video helps you to create modern web applications quickly, and make sure they perform well-using examples and business logic from real life

  • Understand the difference between the Yii 1.x.x versions using useful examples and how to migrate to yii2

  • In Detail

    Yii is a free, open-source web application development framework written in PHP5 that promotes clean DRY design and encourages rapid development. It works to streamline your application development time and helps to ensure an extremely efficient, extensible, and maintainable end product. Being extremely performance optimized, Yii is a perfect choice for any size project. You have full control over the configuration from head-to-toe (presentation-to-persistence) to conform to your enterprise development guidelines. It comes packaged with tools to help test and debug your application and has clear and comprehensive documentation.

    This video course is a collection of Yii2 videos. Each video is represented as a full and independent item, which showcases solutions from real web-applications. So you can easily reproduce them in your environment and learn Yii2 fast and without tears… In this video, you will get started by learning how to install Yii Framework and about application templates, dependency injection container, and model events. You will also learn how to use the external code and how to update your yii-1.x.x based application to yii2. Then, you will see some handy things about the Yii URL router, controllers, and views. The course then proceeds to discuss the three main methods to work with databases in Yii: Active Record, query builder, and direct SQL queries through DAO. Then we will see the working of Forms in Yii and how to keep the application secure. We will look at creating our own controller filters, preventing XSS, CSRF, and SQL injections, and using role-based access control. Later, you will learn to write RESTful Web Services using Yii2. Finally, the course ends by teaching you to install and use official extensions in your project.

    This course will show you how to easily get started, configure your environment, and be ready to write web applications efficiently and quickly.

    Table of Contents

    1. Chapter 1 : Fundamentals
      1. The Course Overview 00:05:41
      2. Installing the Framework 00:18:00
      3. Dependency Injection Container 00:06:58
      4. Service Locator 00:04:13
      5. Code Generation 00:05:27
      6. Configuring Components 00:02:52
      7. Working with Events 00:05:19
      8. Using External Code 00:08:33
    2. Chapter 2 : Routing, Controllers, and Views
      1. Configuring URL Rules 00:04:49
      2. Generating URLs 00:04:59
      3. Using Regular Expressions in URL Rules 00:03:24
      4. Using a base controller 00:02:35
      5. Using Standalone Actions 00:04:01
      6. Creating a Custom Filter 00:02:39
      7. Displaying Static Pages 00:02:15
      8. Using Flash Messages 00:03:05
      9. Using the Controller Context in a View 00:01:26
      10. Reusing Views with Partials 00:03:03
      11. Using Blocks 00:02:04
      12. Using Decorators 00:01:40
      13. Defining Multiple Layouts 00:02:31
      14. Pagination and Sorting Data 00:03:18
    3. Chapter 3 : ActiveRecord, Model, and Database
      1. Getting Data from a Database 00:04:53
      2. Defining and Using Multiple DB Connections 00:05:13
      3. Customizing the ActiveQuery Class 00:03:45
      4. Processing Model Fields with AR Event-like Methods 00:02:47
      5. Automating Timestamps 00:03:22
      6. Setting Up an Author Automatically 00:04:04
      7. Setting Up a Slug Automatically 00:04:39
      8. Transactions 00:03:00
      9. Replication and Read-write Splitting 00:02:57
      10. Implementing Single-table Inheritance 00:03:50
    4. Chapter 4 : Forms
      1. Writing your Own Validators 00:03:07
      2. Uploading Files 00:04:05
      3. Adding and Customizing CaptchaWidget 00:04:13
      4. Customizing Captcha 00:02:16
      5. Creating a Custom Input Widget 00:02:31
      6. Tabular Input 00:04:40
      7. Conditional Validation 00:01:44
      8. Complex Forms with Multiple Models 00:03:37
      9. AJAX-dependent Drop-down List 00:03:02
      10. AJAX Validation 00:02:35
      11. Creating a Custom Client-Side Validation 00:03:27
    5. Chapter 5 : Security
      1. Authentication 00:03:48
      2. Using Controller Filters 00:05:37
      3. Preventing XSS 00:04:04
      4. Preventing SQL injections 00:04:49
      5. Preventing CSRF 00:05:36
      6. Using RBAC 00:06:36
      7. Encrypting/Decrypting Data 00:03:34
    6. Chapter 6 : RESTful Web Services
      1. Creating a REST Server 00:07:29
      2. Authenticating REST APIs 00:01:42
      3. Rate Limiting 00:04:35
      4. Versioning 00:03:13
      5. Error Handling 00:01:34
    7. Chapter 7 : Official Extensions
      1. Authentication Client 00:04:33
      2. SwiftMailer E-mail Library 00:06:09
      3. Faker Fixture Data Generator 00:03:42
      4. Imagine Library 00:02:15
      5. MongoDB Driver 00:06:52