Wiki articles in category Tutorials

Showing 1-20 of 257 items.
Created 2 months ago by Mehdi Achour, updated a month ago by samdark.

(draft) Understanding Yii 3

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.

28 0
11 followers
Viewed: 13 077 times
Version: 3.0
Category: Tutorials
Tags: yii3
Created 2 months ago by toaster, updated 2 months ago by toaster.

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

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...

6 0
2 followers
Viewed: 3 229 times
Version: 2.0
Category: Tutorials
Created a year ago by sirin k, updated 3 months ago by sirin k.

Yii2 RESTful API with OAuth 2.0

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

3 0
3 followers
Viewed: 32 643 times
Version: 2.0
Category: Tutorials
Created 2 years ago by AndroideLP, updated a year ago by Jairus Martin.

Working with relational removals by yii2

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

0 0
2 followers
Viewed: 17 915 times
Version: 2.0
Category: Tutorials
Created 2 years ago by AndroideLP, updated 10 months ago by AndroideLP.

Optimize Scenarios for yii2

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.

3 0
2 followers
Viewed: 20 184 times
Version: 2.0
Category: Tutorials
Created 2 years ago by Amjad Khan, updated 2 years ago by Amjad Khan.

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

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

2 0
6 followers
Viewed: 45 798 times
Version: 2.0
Category: Tutorials
Created 2 years ago by emrald, updated 2 years ago by emrald.

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

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: 8 650 times
Version: 2.0
Category: Tutorials
Created 2 years ago by Sherin Jose, updated 2 years ago by Sherin Jose.

Installation guide: Yii-2 advanced template with RBAC system

Welcome, all of you !

7 1
19 followers
Viewed: 76 977 times
Version: 2.0
Category: Tutorials
Tags: install, rbac, yii2
Created 2 years ago by Alexandre Rodichevski, updated 2 years ago by Alexandre Rodichevski.

Background task with Ajax

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

0 0
1 follower
Viewed: 16 805 times
Version: 1.1
Category: Tutorials
Created 3 years ago by kv4nt, updated 3 years ago by kv4nt.

CMenu widget like bootstrap navbar with submenu

0 0
1 follower
Viewed: 15 235 times
Version: 1.1
Category: Tutorials
Created 3 years ago by softark, updated 10 months ago by softark.

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

Assume we have many categories and many posts.

3 0
6 followers
Viewed: 27 505 times
Version: 2.0
Category: Tutorials
Created 3 years ago by Programmer Thailand, updated 3 years ago by Programmer Thailand.

Language Selector

common\components\LanguageSelector.php

<?php
namespace common\components;

0 0
5 followers
Viewed: 9 186 times
Version: 2.0
Category: Tutorials
Created 3 years ago by softark, updated 2 years ago by softark.

Relational Query - Lazy Loadnig and Eager Loading in Yii 2.0

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.

4 0
4 followers
Viewed: 27 180 times
Version: 2.0
Category: Tutorials
Created 3 years ago by Scott_Huang, updated 3 years ago by Scott_Huang.

A simple widget - jump2link

namespace app\components;

0 0
1 follower
Viewed: 8 504 times
Version: 2.0
Category: Tutorials
Created 3 years ago by ajith, updated 3 years ago by ajith.

Simple Jui Autocomplete in yii2

To use jui auto complete widget first add

0 0
3 followers
Viewed: 29 874 times
Version: 2.0
Category: Tutorials
Created 3 years ago by MetaCrawler, updated 7 months ago by Luis Armando.

YII2: Create console commands inside a module or extension

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.

7 0
6 followers
Viewed: 32 505 times
Version: 2.0
Category: Tutorials
Created 3 years ago by Scott_Huang, updated 3 years ago by Scott_Huang.

Export query content to excel through any of your controllers, also can set cssClass for header/odd/even rows, auto download

To generate excel by query content, and download through any controller. You also can bind cssClass to header/odd/even rows. As for header, you even can set cssClass for each column.

$this->export2excel($excel_content,$excel_file);

in your controller.

2 0
2 followers
Viewed: 14 305 times
Version: 2.0
Category: Tutorials
Created 3 years ago by phunsanit, updated 3 years ago by phunsanit.

YII2 : simple language Switcher Widget

  1. create file common\components\languageSwitcher.php
1 0
5 followers
Viewed: 18 562 times
Version: 2.0
Category: Tutorials
Created 3 years ago by ezekielnoob, updated 30 days ago by samdark.

Simple way to implement Dynamic Tabular Inputs

grid

2 0
11 followers
Viewed: 28 104 times
Version: 2.0
Category: Tutorials
Created 3 years ago by Bizley, updated 3 years ago by Bizley.

Active Record snapshotting (Model data base history)

One of the common tasks the web application might be required to perform, especially the app using some kind of a CMS, is to save the history of data changes. Your client for sure will want the answer to this simple question - If I mess this up or delete by accident can we bring it back? Well, DB backup is one thing and quick recovery is another - let's talk about latter one.

1 0
5 followers
Viewed: 10 217 times
Version: 1.1
Category: Tutorials