Wiki articles in category Tutorials

Showing 1-20 of 45 items.

How to learn Yii?!

Created 14 years ago by yJeroen yJeroen, updated 6 years ago by CeBe CeBe.

Here is a step by step To-Do list for Yii beginners. The list is an advice of what tutorials and documentation you can walk through to get a full understanding of the Yii Framework. These can be a help to learn Yii.

17 0
21 followers
Viewed: 130 615 times
Version: all
Category: Tutorials

JWT authentication tutorial

Created 5 years ago by Allan Jensen Allan Jensen, updated 4 years ago by Allan Jensen Allan Jensen.

JWT is short for JSON Web Token. It is used eg. instead of sessions to maintain a login in a browser that is talking to an API - since browser sessions are vulnerable to CSRF security issues. JWT is also less complicated than setting up an OAuth authentication mechanism.

14 0
8 followers
Viewed: 192 501 times
Version: 2.0
Category: Tutorials

Drills : Search by a HAS_MANY relation in Yii 2.0

Created 11 years ago by softark softark, updated 7 years ago by softark softark.

This article tries to describe the practical techniques of searching by a HAS_MANY relation using ActiveRecord of Yii 2.0.

13 0
14 followers
Viewed: 114 790 times
Version: 2.0
Category: Tutorials

Relational Query - Lazy Loading and Eager Loading in Yii 2.0

Created 10 years ago by softark softark, updated 7 years ago by samdark samdark.

It's well known that there are Lazy Loading approach and Eager Loading approach in the relational query. But it's very important to know how the Eager Loading approach works in Yii 2. It has changed drastically from that of Yii 1.1, and there are common misunderstandings about it in the community.

11 0
6 followers
Viewed: 66 993 times
Version: 2.0
Category: Tutorials

Yii v2 snippet guide III

Created 5 years ago by rackycz rackycz, updated 11 months ago by rackycz rackycz.

Articles are separated into more files as there is the max lenght for each file on wiki.

8 0
4 followers
Viewed: 267 446 times
Version: 2.0
Category: Tutorials

YII2: Create console commands inside a module or extension

Created 10 years ago by MetaCrawler MetaCrawler, updated 8 years ago by Luis Armando Luis Armando.

Here is a small guide how to get console commands running inside modules & extensions. For this guide I used a fresh yii2 basic application template.

8 0
6 followers
Viewed: 74 495 times
Version: 2.0
Category: Tutorials

Batch Gridview data ajax send splitted in chunks displaying bootstrap Progress bar

Created 7 years ago by toaster toaster, updated 7 years ago by toaster toaster.

The scenario in which this wiki can be useful is when you have to send an (huge) array of model ids and perform a time consuming computation with it like linking every model to other models. The idea is to split the array into smaller arrays and perform sequential ajax requests, showing the calculation progress using a [Bootstrap Progress bar](https://www.yiiframework.com/extension/yiisoft/yii2-bo...

8 0
2 followers
Viewed: 41 086 times
Version: 2.0
Category: Tutorials

Nested Set with Yii2

Created 7 years ago by sangprabo sangprabo, updated 7 years ago by sangprabo sangprabo.

The nested set behaviour is an approach to store hierarchical data in relational databases. For example, if we have many categories for our product or items. One category can be a "parent" for other categories, means that one category consists of more than one category. The model can be drawn using a "tree" model. There are other approaches available but what we will learn in this article is speci...

7 0
3 followers
Viewed: 95 715 times
Version: 2.0
Category: Tutorials
7 0
4 followers
Viewed: 428 966 times
Version: 2.0
Category: Tutorials

Installation guide: Yii-2 advanced template with RBAC system

Created 9 years ago by Sherin Jose Sherin Jose, updated 9 years ago by Sherin Jose Sherin Jose.

Welcome, all of you !

10 1
19 followers
Viewed: 131 968 times
Version: 2.0
Category: Tutorials
Tags: install, rbac, yii2

RBAC Super Simple with Admin and User

Created 11 years ago by evercode evercode, updated 11 years ago by evercode evercode.

One of the common requests I see in the forum is how to implement RBAC. While you can implement Yii 2's built-in RBAC, that might be too much for developers who are just starting with Yii 2 or have simpler needs. Sometimes you are looking for a fast solution and just want two flavors, user and admin. And even if you will eventually need more, you can use these methods as a starting point for devel...

9 1
15 followers
Viewed: 110 878 times
Version: 2.0
Category: Tutorials

Filter & Sort by calculated/related fields in GridView Yii 2.0

Created 12 years ago by Kartik V Kartik V, updated 7 years ago by softark softark.

This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.

14 3
64 followers
Viewed: 293 280 times
Version: 2.0
Category: Tutorials

Api of Multiple File Uploading in Yii2

Created 5 years ago by fezzymalek fezzymalek, updated 4 years ago by fezzymalek fezzymalek.

After getting lot's of error and don't know how to perform multiple images api in yii2 finally I get it today

5 0
4 followers
Viewed: 78 744 times
Version: 2.0
Category: Tutorials

Building Modern SPAs with Yii2 and Inertia.js

Created 7 months ago by Akshay Joshi Akshay Joshi.

Inertia.js is a modern approach to building single-page applications (SPAs) without the complexity of building an API. It allows you to use modern JavaScript frameworks like React, Vue, or Svelte while keeping your Yii2 controllers and routing intact.

5 0
2 followers
Viewed: 47 243 times
Version: 2.0
Category: Tutorials
Tags:

Simple way to implement Dynamic Tabular Inputs

Created 11 years ago by ezekielnoob ezekielnoob, updated 7 years ago by samdark samdark.

grid

5 0
10 followers
Viewed: 94 066 times
Version: 2.0
Category: Tutorials

How to create/update a model with its related items using Listbox or CheckboxList

Created 10 years ago by softark softark, updated 8 years ago by softark softark.

Assume we have many categories and many posts.

5 0
6 followers
Viewed: 93 166 times
Version: 2.0
Category: Tutorials

How to use imagine ( crop, thumb, effects for images ) on Yii2

Created 11 years ago by Anas AbuDayah Anas AbuDayah, updated 10 years ago by Cozumel Cozumel.

Imagine adds most common image functions and also acts as a wrapper to Imagine image manipulation library.

5 0
14 followers
Viewed: 105 856 times
Version: 2.0
Category: Tutorials

Running applications with Docker

Created 11 years ago by schmunk schmunk, updated 11 years ago by schmunk schmunk.

When building PHP web applications you usually have to take care about defining and providing a consistent development and production environment for your team. This includes your application packages, PHP-extensions, database servers and often further components such as a mail server or workers.

4 0
8 followers
Viewed: 55 203 times
Version: 2.0
Category: Tutorials

Optimize Scenarios for yii2

Created 9 years ago by AndroideLP AndroideLP, updated 6 years ago by AndroideLP AndroideLP.

Working with scenarios, with models that can receive many modifications in their rules or structures as development evolves, can create disruptions in the rescue process.

4 0
2 followers
Viewed: 49 867 times
Version: 2.0
Category: Tutorials

Relational data fields display and edit with the yii2-detail-view extension

Created 12 years ago by Kartik V Kartik V, updated 12 years ago by Kartik V Kartik V.

If you have read this wiki you would be aware of the yii2-detail-view extension and how it offers you an easy way to EDIT and VIEW your model data, toggle these modes, and other features. You can [read the extension documentation](http://demos....

4 0
41 followers
Viewed: 69 061 times
Version: 2.0
Category: Tutorials