Wiki articles

Showing 81-100 of 822 items.

Before Query Example : Soft Delete

Created 8 years ago by moo.tensai, updated 8 years ago by moo.tensai.

This is how i do before query on Yii 2.0

0 0
3 followers
Viewed: 19 486 times
Version: 2.0
Category: How-tos

Building a search GET request with scenarios ; calling a SearchModel from URLs...

Created 8 years ago by Louis Gac, updated 8 years ago by Louis Gac.

Search Models are a very elegant and powerful way to build an Active Data Provider. If you use them a lot, you'll quickly need to use scenarios, which will lead you to a very DRY Controller code.

0 0
2 followers
Viewed: 22 251 times
Version: 2.0
Category: Tips

Single PHP entry point with Nginx

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

In this article I will show you how to slightly increase application security, by exploiting the fact that Yii implements the Front Controller Pattern.

4 0
3 followers
Viewed: 17 495 times
Version: all
Category: How-tos
2 0
3 followers
Viewed: 34 976 times
Version: 2.0
Category: How-tos

YII2 : simple language Switcher Widget

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

Customize your Growl/Alert msg easy and quickly

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

I leverage Kartik's notification widgets.

0 1
2 followers
Viewed: 15 830 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 8 years ago by skworden, updated 5 years 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.

21 0
28 followers
Viewed: 245 711 times
Version: 2.0
Category: How-tos

Simple way to implement Dynamic Tabular Inputs

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

grid

4 0
10 followers
Viewed: 83 384 times
Version: 2.0
Category: Tutorials

Console Based CAuthManager Helper

Created 8 years ago by bluyell, updated 8 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: 12 301 times
Version: 1.1
Category: How-tos

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

Created 8 years ago by le_top, updated 8 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: 13 748 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 9 years ago by Gerhard Liebenberg, updated 8 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: 13 208 times
Version: 1.1
Category: How-tos

Using Yii Gallery Manager in your Yii 1.x application

Created 9 years ago by Trejder, updated 9 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: 15 302 times
Version: 1.1
Category: How-tos

How to register scripts and css

Created 9 years ago by oligalma, updated 8 years ago by oligalma.

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

2 0
2 followers
Viewed: 93 570 times
Version: 1.1
Category: How-tos

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

Created 9 years ago by MadAnd, updated 2 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: 143 571 times
Version: 2.0
Category: How-tos

Use kartik Growl with Yii2 flash messages

Created 9 years ago by skworden, updated 8 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: 48 422 times
Version: 2.0
Category: How-tos

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: 16 479 times
Version: 1.1
Category: Tutorials

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: 12 970 times
Version: 2.0
Category: Tips

Things to Consider when application hosting on AppFog

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

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

1 0
1 follower
Viewed: 7 914 times
Version: 1.1
Category: Tips

MailGun Api Wrapper to send emails

Created 9 years ago by VINAY Kr. SHARMA, updated 4 years ago by Maurizio Domba Cerin.

MailGun.php Class

1 0
2 followers
Viewed: 12 640 times
Version: 1.1
Category: How-tos
Tags: email, mailgun

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: 41 777 times
Version: 2.0
Category: Tips