Wiki articles

Showing 61-80 of 799 items.
2 0
3 followers
Viewed: 21 509 times
Version: 2.0
Category: How-tos

YII2 : simple language Switcher Widget

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

Customize your Growl/Alert msg easy and quickly

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

I leverage Kartik's notification widgets.

0 1
2 followers
Viewed: 9 956 times
Version: 2.0
Category: Tips

Render Form in popup via AJAX (Create and Update) with ajax validation & Also load any page via ajax Yii 2.0 (2.3)

Created 4 years ago by skworden, updated a year ago by Yii3.

There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.

16 0
26 followers
Viewed: 182 104 times
Version: 2.0
Category: How-tos

Simple way to implement Dynamic Tabular Inputs

Created 4 years ago by ezekielnoob, updated 4 months ago by samdark.

grid

2 0
10 followers
Viewed: 29 212 times
Version: 2.0
Category: Tutorials

Console Based CAuthManager Helper

Created 4 years ago by bluyell, updated 4 years ago by bluyell.

This behavior enable you to command the RBAC via console. This avoids you to install a entire rbac graphic toolkit to set up some rules in the rbac, maybe you are running inside a ssh console.

0 0
1 follower
Viewed: 7 902 times
Version: 1.1
Category: How-tos

Relation scope to test existence of related records ("EXISTS")

Created 4 years ago by le_top, updated 4 years ago by le_top.

When one needs to select a record in a table that do not have related records through a relation, it is generally suggested to use a subquery. Personnaly, I prefer a high level approach, and I have a method to do it with scopes.

1 0
2 followers
Viewed: 8 964 times
Version: 1.1
Category: How-tos

Multiple CGridView virtual attributes, retrieved from a single model function. Also communication between CGridView columns and rows; and between CGridView and its own parent view.

Created 4 years ago by Gerhard Liebenberg, updated 4 years ago by Gerhard Liebenberg.

We probably have all used a virtual attribute (model function) to retrieve complex or related data for a CGridView column:

0 0
4 followers
Viewed: 10 221 times
Version: 1.1
Category: How-tos

Using Yii Gallery Manager in your Yii 1.x application

Created 4 years ago by Trejder, updated 4 years ago by Trejder.

Finding good looking, working and not abandoned gallery manager for Yii 1.x application is a tough task. Out of all I found, only yii-gallery-manager extension looked promising. But, after downloading it, it turned out, that there are certain unusual things to do, to include it in your application. So, I decided to write this article...

0 0
1 follower
Viewed: 10 074 times
Version: 1.1
Category: How-tos

How to register scripts and css

Created 4 years ago by oligalma, updated 3 years ago by oligalma.

Then, we write this in the config > main.php:

1 0
1 follower
Viewed: 61 965 times
Version: 1.1
Category: How-tos

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

Created 4 years ago by MadAnd, updated 6 months ago by MadAnd.

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.

3 0
13 followers
Viewed: 90 456 times
Version: 2.0
Category: How-tos

Use kartik Growl with Yii2 flash messages

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

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

6 0
10 followers
Viewed: 37 650 times
Version: 2.0
Category: How-tos

Active Record snapshotting (Model data base history)

Created 4 years ago by Bizley, updated 4 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: 10 751 times
Version: 1.1
Category: Tutorials

Using PayPal IPN with Yii2

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

I'm using PayPal's script from

0 0
1 follower
Viewed: 8 515 times
Version: 2.0
Category: Tips

Things to Consider when application hosting on AppFog

Created 4 years ago by VINAY Kr. SHARMA, updated 4 years ago by VINAY Kr. SHARMA.

I faced many issues when hosted our company website on AppFog.

1 0
1 follower
Viewed: 5 141 times
Version: 1.1
Category: Tips

MailGun Api Wrapper to send emails

Created 4 years ago by VINAY Kr. SHARMA, updated 4 years ago by VINAY Kr. SHARMA.

MailGun.php Class

1 0
1 follower
Viewed: 6 752 times
Version: 1.1
Category: How-tos
Tags: email, mailgun

Debuging variables in Yii2

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

This tutorial is explained following "basic" application structure.

2 1
6 followers
Viewed: 22 992 times
Version: 2.0
Category: Tips

Selecting best language based on Browser language and available languages.

Created 4 years ago by le_top, updated 4 years ago by le_top.

Your application is international and you have to select the best language for the user. Your user may have selected 'fr_CA' and you have 'fr_FR' or 'fr' available. What do you do? Here is a tip.

2 0
1 follower
Viewed: 9 411 times
Version: 1.1
Category: Tips

How to create a custom exception and show it friendly with CJuiDialog

Created 4 years ago by Fábio Sales, updated 4 years ago by Fábio Sales.

Sometimes we need to create our custom exception and show it to the end user through a friendly way . In this article, I'm showing how to do it using CJuidialog.

0 0
1 follower
Viewed: 13 820 times
Version: 1.1
Category: How-tos

`forceCopy` per Asset Bundle

Created 4 years ago by schmunk, updated 4 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: 7 706 times
Version: 2.0
Category: How-tos