Skip to main content

YII2 - Self Learning Program

The first step to start your software development journey with Samarth is to understand PHP language and become comfortable in writing programmes in PHP. We have selected a playlist for you to save your time. Try and complete this in 3-4 days. Have fun!

Foundational Course on PHP (Week 1)

Link to Playlist

Understanding DVCS (Week 1)

Take the version control with git course

Beginning with YII2 (Week 2)

After getting comfortable in PHP, the next step in your journey is to get familiar with working on YII2 framework. We have compiled a list of links you need to go through to have a foundational understanding of the framework. The links point to the official Yii2 Guide. We have extracted the links relevant for starting up. Have fun while you learn this beautiful framework!

Introduction

Follow this guide to setup the development environement

Read more about basic YII2 installation

Getting Started

What do you need to know

Installing Yii

Running Applications

Saying Hello

Samarth Custom Theme

So far, you should have understood the installation of YII2 standard version. We at Samarth have customised theme for our use and you can continue the rest of the program on the customised theme. It is a good time now to install Samarth's own variant of YII2. Don't worry, we have only customised the theme, you can still refer to YII2 documentation to learn its functionality. Connect with @chaman-iic in case you need any clarity on this

Deploying YII2 Basic Application with Samarth Theme

Using Samarth Custom Theme

Working with Forms

Working with Databases

Generating Code with Gii

Application Structure

Application Structure Overview

Entry Scripts

Controllers

Models

Views

Handling Requests

Request Handling Overview

Bootstrapping

Routing and URL Creation

Requests

Responses

Sessions and Cookies

Handling Errors

Logging

Working with Databases

Database Access Objects

Query Builder

Active Record

Getting Data from Users

Creating Forms

Validating Input

Uploading Files

Collecting Tabular Input

Getting Data for Multiple Models

Extending ActiveForm on the Client Side

Displaying Data

Data Formatting

Pagination

Sorting

Data Providers

Data Widgets

Working with Client Scripts

YII2 Video Tutorials

YII2 Video Tutorials

Next steps

Once you have completed this programme, you can connect with your supervisor for assignments. But before that, follow the steps to build your first App in YII2 and create your first app on Samarth Theme. Enjoy!