Wiki articles in category Tutorials

Showing 1-20 of 40 items.
Created 8 months ago by sirin k, updated 2 months ago by CeBe.

Yii2 RESTful API with OAuth 2.0

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

3 0
3 followers
Viewed: 20 448 times
Version: 2.0
Category: Tutorials
Created a year 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: 13 491 times
Version: 2.0
Category: Tutorials
Created a year ago by AndroideLP, updated 2 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.

1 0
1 follower
Viewed: 14 522 times
Version: 2.0
Category: Tutorials
Created a year ago by Amjad Khan, updated a year 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

0 0
6 followers
Viewed: 33 545 times
Version: 2.0
Category: Tutorials
Created a year ago by emrald, updated a year 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.

0 0
3 followers
Viewed: 6 838 times
Version: 2.0
Category: Tutorials
Created a year ago by Sherin Jose, updated a year ago by Sherin Jose.

Installation guide: Yii-2 advanced template with RBAC system

Welcome, all of you !

4 0
17 followers
Viewed: 63 558 times
Version: 2.0
Category: Tutorials
Tags: install, rbac, yii2
Created 2 years ago by softark, updated 2 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.

2 0
5 followers
Viewed: 21 540 times
Version: 2.0
Category: Tutorials
Created 2 years ago by Programmer Thailand, updated 2 years ago by Programmer Thailand.

Language Selector

common\components\LanguageSelector.php

<?php
namespace common\components;

0 0
5 followers
Viewed: 7 979 times
Version: 2.0
Category: Tutorials
Created 2 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.

3 0
4 followers
Viewed: 21 672 times
Version: 2.0
Category: Tutorials
Created 2 years ago by Scott_Huang, updated 2 years ago by Scott_Huang.

A simple widget - jump2link

namespace app\components;

0 0
1 follower
Viewed: 7 886 times
Version: 2.0
Category: Tutorials
Created 2 years ago by ajith, updated 2 years ago by ajith.

Simple Jui Autocomplete in yii2

To use jui auto complete widget first add

0 0
3 followers
Viewed: 24 828 times
Version: 2.0
Category: Tutorials
Created 2 years ago by MetaCrawler, updated a year ago by MetaCrawler.

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.

5 0
6 followers
Viewed: 27 776 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: 12 751 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: 16 519 times
Version: 2.0
Category: Tutorials
Created 3 years ago by ezekielnoob, updated 3 years ago by ezekielnoob.

Simple way to implement Dynamic Tabular Inputs

grid

1 0
9 followers
Viewed: 23 922 times
Version: all
Category: Tutorials
Created 3 years ago by schmunk, updated 3 years ago by schmunk.

Running applications with Docker

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: 27 551 times
Version: 2.0
Category: Tutorials
Created 3 years ago by softark, updated 6 months ago by softark.

Drills : Search by a HAS_MANY relation in Yii 2.0

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

10 0
11 followers
Viewed: 62 114 times
Version: 2.0
Category: Tutorials
Created 3 years ago by evercode, updated 3 years ago by evercode.

RBAC Super Simple with Admin and User

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

6 1
14 followers
Viewed: 68 649 times
Version: 2.0
Category: Tutorials
Created 3 years ago by Misbahul D Munir, updated 3 years ago by Misbahul D Munir.

Simple Way to Upload and Save File

This tutorial need extension mdmsoft/yii2-upload-file. Follow the intruction to install. After installation done, create controller and action

0 0
4 followers
Viewed: 24 490 times
Version: 2.0
Category: Tutorials
Created 3 years ago by Anas AbuDayah, updated 2 years ago by Cozumel.

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

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

4 0
12 followers
Viewed: 63 399 times
Version: 2.0
Category: Tutorials