Wiki articles in category Tutorials

Showing 21-40 of 265 items.

Relational Query - Lazy Loading and Eager Loading in Yii 2.0

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

10 0
6 followers
Viewed: 58 557 times
Version: 2.0
Category: Tutorials

A simple widget - jump2link

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

namespace app\components;

0 0
1 follower
Viewed: 13 747 times
Version: 2.0
Category: Tutorials

Simple Jui Autocomplete in yii2

Created 9 years ago by ajith, updated 9 years ago by ajith.

To use jui auto complete widget first add

0 0
3 followers
Viewed: 51 902 times
Version: 2.0
Category: Tutorials

YII2: Create console commands inside a module or extension

Created 9 years ago by MetaCrawler, updated 6 years ago by 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: 66 226 times
Version: 2.0
Category: Tutorials

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

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

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: 26 427 times
Version: 2.0
Category: Tutorials

YII2 : simple language Switcher Widget

Created 9 years ago by phunsanit, updated 9 years ago by phunsanit.
  1. create file common\components\languageSwitcher.php
1 0
5 followers
Viewed: 31 611 times
Version: 2.0
Category: Tutorials

Simple way to implement Dynamic Tabular Inputs

Created 9 years ago by ezekielnoob, updated 5 years ago by samdark.

grid

4 0
10 followers
Viewed: 84 508 times
Version: 2.0
Category: Tutorials

Active Record snapshotting (Model data base history)

Created 9 years ago by Bizley, updated 9 years ago by Bizley.

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: 17 013 times
Version: 1.1
Category: Tutorials

Running applications with Docker

Created 9 years ago by schmunk, updated 9 years ago by 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: 51 403 times
Version: 2.0
Category: Tutorials

Drills : Search by a HAS_MANY relation in Yii 2.0

Created 9 years ago by softark, updated 6 years ago by 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: 106 157 times
Version: 2.0
Category: Tutorials

Gettext and Poedit HOWTO

Created 10 years ago by Maug Lee, updated 10 years ago by Maug Lee.

Example settings when using Gettext for i18n.

0 0
2 followers
Viewed: 13 421 times
Version: 1.1
Category: Tutorials

RBAC Super Simple with Admin and User

Created 10 years ago by evercode, updated 9 years ago by 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: 103 059 times
Version: 2.0
Category: Tutorials

Simple Way to Upload and Save File

Created 10 years ago by Misbahul D Munir, updated 10 years ago by Misbahul D Munir.

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: 39 737 times
Version: 2.0
Category: Tutorials

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

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

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

5 0
14 followers
Viewed: 100 176 times
Version: 2.0
Category: Tutorials

How to display images in CJuiAutoComplete without extenstions

Created 10 years ago by Asmaa, updated 5 years ago by samdark.

I wanted to customize the CJuiAutoComplete, so that it displays a thumb image before the label like the one shown in the following image:

0 0
2 followers
Viewed: 13 305 times
Version: 1.1
Category: Tutorials

Building a REST API in Yii2.0

Created 10 years ago by sirin k, updated 7 years ago by Maurizio Domba Cerin.

This is wiki page is useful if you are trying to build a customized REST API in Yii2.0

4 0
16 followers
Viewed: 150 878 times
Version: 2.0
Category: Tutorials

Translation from .txt file

Created 10 years ago by Yii3, updated 10 years ago by Yii3.

Translation from .txt file Note:

0 2
4 followers
Viewed: 10 366 times
Version: 1.1
Category: Tutorials

How to display Dependent drop-down value using ajax call with dynamically

Created 10 years ago by Ankit Modi, updated 5 years ago by samdark.

Hi Friends, In this tutorial I write a code display dependent drop-down value using ajax call.

1 1
6 followers
Viewed: 50 582 times
Version: 1.1
Category: Tutorials

Forcing login for all pages using CBehavior

Created 10 years ago by Rohit Suthar, updated 10 years ago by Rohit Suthar.

In this wiki I will show how could forcing login for all pages and users must be logged in to access almost all of the site’s content.

0 3
5 followers
Viewed: 34 149 times
Version: 1.1
Category: Tutorials

Manage Email Template content from database

Created 10 years ago by Ankit Modi, updated 10 years ago by Ankit Modi.

Hi Friends,

0 1
1 follower
Viewed: 24 336 times
Version: all
Category: Tutorials