Learning Yii 2

Опубликовано: 01 Март 2025
на канале: Tea Time
91
1

Explore the power of Yii 2 by creating the world’s first dating site for monsters!
Get acquainted with Yii's excellent development tools, explore its built-in components, and learn how to customize them
Incorporate and manage user authentication, create a great front-end design, and embed search functionality
Get on top of the basics and then start exploring extra functionalities, such as database migrations, image manipulation, and internationalization

Learning
Set up a development environment for your application
Scaffold Models, Views and Controllers quickly using Gii
Write automated tests using the Codeception testing framework
Make a secure environment using ACF and RBAC
Manage stylesheets and Javascript with the AssetManager
Keep view code clean with HTMLHelper
Build a robust search UI with ActiveQuery and TypeAhead
Create alternate themes for your site
Send e-mails using SwiftMailer
Translate your application into multiple languages

About
Yii is the premium PHP framework for developing web applications. It provides components to simplify every aspect of web development, including authentication, authorization, and automated testing, offering a comprehensive ORM called ActiveRecord, and the option to perform performance tuning. We can use all of these features out-of-the-box, or even customize them based on our project requirements.

The more applications we develop for the web, the more aware we become that we’re spending time on the same repetitive tasks. Learning Yii 2 demonstrates how it is entirely possible to write quality applications fast. This course will show you how to create a basic but fully functional dating site for monsters. All this with minimal effort on your part, because the Yii framework simplifies the overhead work.

We’ll start by installing Yii's basic application template via Vagrant. Before you know it, you’ll have a fully-functional web application that is ready to be customized. You’ll learn to generate Models, Views, and Controllers, and debug and test them with the Debug Toolbar and Codeception. As we continue, you’ll learn to modify that generated code to create a registration page, a profile page, and a listing page, as well as a search interface using ActiveQuery and TypeAhead. We’ll also use ACF and RBAC to boost the security of our website.

By the end, you’ll be comfortable using Yii 2 to develop your own personal and professional web applications.


Introducing Yii 2.0
The Course Overview
Creating a Development Environment Using Vagrant and PuPHPet
Installing the Basic Application Template
An Overview of the Yii 2 Directory Structure
Configuring and Extending Yii 2 Components
Introducing Yii's Development Tools
Configuring and Using Gii
Generating and Working with Models
Generating the Controllers
Generating the Views
Configuring and Using the Debug Module
Testing with Yii and Codeception
Introducing the Codeception Testing Framework
Unit Testing
Functional Testing
Installing Selenium and Acceptance Testing
Creating and Managing Users
It’s Alive – Creating Our First Monster
Warding Off Evil
Registering Our Ghouls, Goblins, and Vampires
Access Control Filter – The Silver Bullet
Implementing Role Based Access Control
Adding Some Style
All about Yii 2 Layouts
Managing JavaScript and CSS
Introducing the Yii 2 HTMLHelper
Monster Profiling – The Scary Details
Finding Love
Finding the Right Ghoul-mate Using ActiveQuery
Enhancing the Search UI
Displaying and Sorting Results
Adding New Themes
Beyond the Basics
Sending E-mails Using Swiftmailer
Working with Images
Tracking Database Changes Using Migrations
Love, the International Language (i18N)