Wiki articles in category Tutorials

Showing 1-20 of 263 items.

JWT authentication tutorial

Created a month ago by Allan Jensen, updated a month ago by 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.

2 0
2 followers
Viewed: 2 907 times
Version: 2.0
Category: Tutorials

Yii v2 snippet guide III

Created 6 months ago by rackycz, updated 3 months ago by rackycz.

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

3 0
1 follower
Viewed: 14 205 times
Version: 2.0
Category: Tutorials

Api of Multiple File Uploading in Yii2

Created 10 months ago by fezzymalek, updated 10 months ago by fezzymalek.

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

1 0
2 followers
Viewed: 11 197 times
Version: 2.0
Category: Tutorials
3 0
1 follower
Viewed: 16 138 times
Version: 2.0
Category: Tutorials
6 0
3 followers
Viewed: 112 018 times
Version: 2.0
Category: Tutorials

Nested Set with Yii2

Created 2 years ago by sangprabo, updated 2 years ago by 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: 38 263 times
Version: 2.0
Category: Tutorials

(draft) Understanding Yii 3

Created 2 years ago by Mehdi Achour, updated a year ago by samdark.

This document is intended for an audience already familiar with Yii2. It's meant to bring together all information related to Yii 3 in one place to make it easier to get on track.

39 0
17 followers
Viewed: 162 132 times
Version: 3.0
Category: Tutorials
Tags: yii3

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

Created 2 years ago by toaster, updated 2 years ago by 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: 25 350 times
Version: 2.0
Category: Tutorials

Yii2 RESTful API with OAuth 2.0

Created 3 years ago by sirin k, updated 2 years ago by sirin k.

https://cdn.pbrd.co/images/GMN5ROs.jpg

3 0
3 followers
Viewed: 56 517 times
Version: 2.0
Category: Tutorials

Working with relational removals by yii2

Created 4 years ago by AndroideLP, updated 4 years ago by Jairus Martin.

This tutorial shows you how to safely remove records between relationships.

0 0
2 followers
Viewed: 28 799 times
Version: 2.0
Category: Tutorials

Optimize Scenarios for yii2

Created 4 years ago by AndroideLP, updated a year ago by 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: 32 666 times
Version: 2.0
Category: Tutorials

Yii2 GridView Sorting and Searching with a Junction Table Column(Many to Many Relationship)

Created 4 years ago by Amjad Khan, updated 4 years ago by Amjad Khan.

Following is the table structure

tblgroups

CREATE TABLE IF NOT EXISTS `tblgroups` (
  `id` int(11) NOT NULL,
  `groupname` varchar(150) NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1=Acitve,2=Inactive',
  `date` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

tblcontacts

3 1
7 followers
Viewed: 71 646 times
Version: 2.0
Category: Tutorials

How to make bootstrap tabs remain active/selected after navigating to different web pages.

Created 4 years ago by emrald, updated 4 years ago by emrald.

Bootstrap tabs gets unselected/inactive when user navigates to other page and comes back. How to make bootstrap tabs remain active/selected after navigating to different web pages.

1 0
3 followers
Viewed: 12 627 times
Version: 2.0
Category: Tutorials

Installation guide: Yii-2 advanced template with RBAC system

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

Welcome, all of you !

8 1
20 followers
Viewed: 102 277 times
Version: 2.0
Category: Tutorials
Tags: install, rbac, yii2

Background task with Ajax

Created 5 years ago by Alexandre Rodichevski, updated 5 years ago by Alexandre Rodichevski.

This article discusses how one can run a long task in background in yiiframework 1.1 using Ajax technique.

0 0
1 follower
Viewed: 20 966 times
Version: 1.1
Category: Tutorials

CMenu widget like bootstrap navbar with submenu

Created 5 years ago by kv4nt, updated 5 years ago by kv4nt.
0 0
1 follower
Viewed: 19 647 times
Version: 1.1
Category: Tutorials

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

Created 5 years ago by softark, updated 3 years ago by softark.

Assume we have many categories and many posts.

5 0
6 followers
Viewed: 41 973 times
Version: 2.0
Category: Tutorials

Language Selector

Created 5 years ago by Programmer Thailand, updated 5 years ago by Programmer Thailand.

common\components\LanguageSelector.php

<?php
namespace common\components;

1 0
5 followers
Viewed: 13 023 times
Version: 2.0
Category: Tutorials

Relational Query - Lazy Loading and Eager Loading in Yii 2.0

Created 5 years ago by softark, updated 2 years ago by 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.

7 0
6 followers
Viewed: 42 822 times
Version: 2.0
Category: Tutorials

A simple widget - jump2link

Created 5 years ago by Scott_Huang, updated 5 years ago by Scott_Huang.

namespace app\components;

0 0
1 follower
Viewed: 11 063 times
Version: 2.0
Category: Tutorials