Wiki articles

Showing 81-100 of 165 items.

yii2-app-advanced on single domain (Apache, Nginx)

Created 9 years ago by MadAnd, updated 3 years ago by QuPsi.

If you develop rather complex applications with Yii2, you might already be familiar with yii2-app-advanced application template. Well, the template is awesome and provides high flexibility regarding code/configuration sharing among parts of an application.

4 0
14 followers
Viewed: 147 542 times
Version: 2.0
Category: How-tos

Use kartik Growl with Yii2 flash messages

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

This is to show you how to use Yii2 flash messages with Kartik Growl (bootstrap notify wrapper).

8 0
11 followers
Viewed: 49 443 times
Version: 2.0
Category: How-tos

Using PayPal IPN with Yii2

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

I'm using PayPal's script from

0 0
1 follower
Viewed: 13 504 times
Version: 2.0
Category: Tips

Debuging variables in Yii2

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

This tutorial is explained following "basic" application structure.

4 1
8 followers
Viewed: 43 475 times
Version: 2.0
Category: Tips

`forceCopy` per Asset Bundle

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

During development and depending on your setup you may need to use the options forceCopy or linkAssets of the asset manager to work around possible file-system and permission issues.

1 0
1 follower
Viewed: 13 593 times
Version: 2.0
Category: How-tos

YII2 Pagination Options

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

solution here If we are using default pagination option like

1 0
1 follower
Viewed: 18 853 times
Version: 2.0
Category: Tips

Use minified version of JqueryAsset, BootstrapAsset (and all default assets)

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

By default, Yii 2.0 chooses to use the non-minified version of Jquery and Bootstrap files (CSS and JS). However, there's a simple way to indicate Yii to use the minified version.

9 0
6 followers
Viewed: 35 356 times
Version: 2.0
Category: How-tos

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

Moving the vendor directory for multiple projects

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

This How-To is useful if you are planning to move the Yii vendor directory outside the default location.

5 0
5 followers
Viewed: 31 773 times
Version: 2.0
Category: How-tos

Pjax on ActiveForm and GridView - Yii2

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

Here is a example on how to use Pjax with GridView (yii\grid\GridView) and ActiveForm (yii\widgets\ActiveForm) widgets in Yii2.

7 0
16 followers
Viewed: 166 636 times
Version: 2.0
Category: How-tos

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

Analyse the server's USER-AGENT against browsecap file to determine it's capability.

Created 10 years ago by Deepak Pradhan, updated 10 years ago by Deepak Pradhan.

Does your application need to know user's details on browser details, os and device type? We can use PHP's misc. function to achieve that provided you have an update copy of browsercap.ini

0 0
0 follower
Viewed: 9 515 times
Version: 2.0
Category: Tips

Yii2: Configuring different sessions for backend and frontend in Yii Advanced Application Template

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

This is as an extension of this wiki by Kartik V which shows to make different enableAutoLogin cookies for frontend and backend.

3 0
7 followers
Viewed: 44 995 times
Version: 2.0
Category: How-tos

Easy way to redirect http:\\localhost\yii2-basic to http:\\localhost\yii2-basic\web\index.php

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

First of all, install yii2 basic template according below link:

1 0
5 followers
Viewed: 76 600 times
Version: 2.0
Category: Tips

Step by step for how to full export Yii2 grid to excel

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

We will leverage Yii2-excelview widget. So, first of all is install Yii2-excelview:

1 0
5 followers
Viewed: 76 056 times
Version: 2.0
Category: Tips

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 736 times
Version: 2.0
Category: Tutorials
0 0
5 followers
Viewed: 46 884 times
Version: 2.0
Category: How-tos

Create Form With DynamicModel

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

In yii2 we can create form without create FormModel. Here we go

4 0
8 followers
Viewed: 48 526 times
Version: 2.0
Category: Tips
Tags: form, model, yii2

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