Wiki articles

Showing 61-80 of 804 items.

Load data from internal/external source to fill form fields

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

This wiki is to show you how to use jQuery get and JSON to get data from a dropdown/any form field and fill form fields with the values instantaneously. First, I'll give example use cases of what I'm going to teach you so you can quickly see if this is for you.

1 0
5 followers
Viewed: 25 197 times
Version: 2.0
Category: How-tos

[Guide] How to actually separate Frontend (User) and Backend (Admin) on Yii2 Advanced

Created 5 years ago by Wade Shuler, updated 5 years ago by samdark.

I am writing this guide because I struggled to find a resource that included ALL of the necessary steps to completely separate the frontend from the backend. After reading guides like Configuring different sessions for backend and frontend in yii-advanced-app and [yii2 configuring d...

5 1
17 followers
Viewed: 90 745 times
Version: 2.0
Category: How-tos

Before Query Example : Soft Delete

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

This is how i do before query on Yii 2.0

0 0
3 followers
Viewed: 14 557 times
Version: 2.0
Category: How-tos

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

Created 5 years ago by Louis Gac, updated 5 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: 15 746 times
Version: 2.0
Category: Tips

Single PHP entry point with Nginx

Created 5 years ago by MadAnd, updated 5 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: 11 414 times
Version: all
Category: How-tos
2 0
3 followers
Viewed: 24 802 times
Version: 2.0
Category: How-tos

YII2 : simple language Switcher Widget

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

Customize your Growl/Alert msg easy and quickly

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

I leverage Kartik's notification widgets.

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

18 0
26 followers
Viewed: 200 440 times
Version: 2.0
Category: How-tos

Simple way to implement Dynamic Tabular Inputs

Created 5 years ago by ezekielnoob, updated a year ago by samdark.

grid

3 0
10 followers
Viewed: 33 018 times
Version: 2.0
Category: Tutorials

Console Based CAuthManager Helper

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

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

Created 5 years ago by le_top, updated 5 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: 10 018 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 5 years ago by Gerhard Liebenberg, updated 5 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: 11 137 times
Version: 1.1
Category: How-tos

Using Yii Gallery Manager in your Yii 1.x application

Created 5 years ago by Trejder, updated 5 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: 11 400 times
Version: 1.1
Category: How-tos

How to register scripts and css

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

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

2 0
2 followers
Viewed: 73 428 times
Version: 1.1
Category: How-tos

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

Created 5 years ago by MadAnd, updated a year 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.

4 0
13 followers
Viewed: 104 214 times
Version: 2.0
Category: How-tos

Use kartik Growl with Yii2 flash messages

Created 5 years ago by skworden, updated 5 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: 41 022 times
Version: 2.0
Category: How-tos

Active Record snapshotting (Model data base history)

Created 5 years ago by Bizley, updated 5 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: 12 638 times
Version: 1.1
Category: Tutorials

Using PayPal IPN with Yii2

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

I'm using PayPal's script from

0 0
1 follower
Viewed: 9 748 times
Version: 2.0
Category: Tips

Things to Consider when application hosting on AppFog

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

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

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