Showing 1-20 of 46 items.

Use Single Login Session on All Your Yii2 Application/Repository Under Same Domain/Sub Domain

Created 2 years ago by aayushmhu aayushmhu, updated 2 years ago by aayushmhu aayushmhu. 0 comments

There are multiple blog that shows how to use seperate login for yii2 application but in this article i will show you how to use a single login screen for all your YII2 Advanced, YII2 Basic, Application, It will also work when your domain on diffrent server or the same server.

3 0
1
Viewed: 63 687 times
Version: 2.0
Category: Tutorials

Nested Set with Yii2

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

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
Viewed: 96 391 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. 1 comment

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
Viewed: 42 219 times
Version: 2.0
Category: Tutorials

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

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

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

4 2
7
Viewed: 98 385 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. 0 comments

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
Viewed: 67 977 times
Version: 2.0
Category: Tutorials