Wiki articles

Showing 81-100 of 823 items.

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

Created 10 years ago by Wade Shuler Wade Shuler, updated 10 years ago by samdark 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...

9 1
18 followers
Viewed: 129 688 times
Version: 2.0
Category: How-tos

Before Query Example : Soft Delete

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

This is how i do before query on Yii 2.0

0 0
3 followers
Viewed: 21 700 times
Version: 2.0
Category: How-tos

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

Created 10 years ago by Louis Gac Louis Gac, updated 10 years ago by Louis Gac 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: 24 902 times
Version: 2.0
Category: Tips

Single PHP entry point with Nginx

Created 10 years ago by MadAnd MadAnd, updated 10 years ago by MadAnd 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: 20 162 times
Version: all
Category: How-tos
2 0
3 followers
Viewed: 37 781 times
Version: 2.0
Category: How-tos

YII2 : simple language Switcher Widget

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

Customize your Growl/Alert msg easy and quickly

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

I leverage Kartik's notification widgets.

0 1
2 followers
Viewed: 17 520 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 10 years ago by skworden skworden, updated 7 years ago by Yii3 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: 254 269 times
Version: 2.0
Category: How-tos

Simple way to implement Dynamic Tabular Inputs

Created 10 years ago by ezekielnoob ezekielnoob, updated 6 years ago by samdark samdark.

grid

4 0
10 followers
Viewed: 85 846 times
Version: 2.0
Category: Tutorials

Console Based CAuthManager Helper

Created 10 years ago by bluyell bluyell, updated 10 years ago by bluyell 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: 13 801 times
Version: 1.1
Category: How-tos

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

Created 10 years ago by le_top le_top, updated 10 years ago by le_top 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: 15 635 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 10 years ago by Gerhard Liebenberg Gerhard Liebenberg, updated 10 years ago by Gerhard Liebenberg 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: 14 303 times
Version: 1.1
Category: How-tos

Using Yii Gallery Manager in your Yii 1.x application

Created 10 years ago by Trejder Trejder, updated 10 years ago by Trejder 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: 16 941 times
Version: 1.1
Category: How-tos

How to register scripts and css

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

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

2 0
3 followers
Viewed: 96 761 times
Version: 1.1
Category: How-tos

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

Created 10 years ago by MadAnd MadAnd, updated 3 years ago by QuPsi 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: 151 982 times
Version: 2.0
Category: How-tos

Use kartik Growl with Yii2 flash messages

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

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

8 0
11 followers
Viewed: 50 835 times
Version: 2.0
Category: How-tos

Active Record snapshotting (Model data base history)

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

Using PayPal IPN with Yii2

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

I'm using PayPal's script from

0 0
1 follower
Viewed: 14 441 times
Version: 2.0
Category: Tips

Things to Consider when application hosting on AppFog

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

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

1 0
1 follower
Viewed: 9 161 times
Version: 1.1
Category: Tips

MailGun Api Wrapper to send emails

Created 10 years ago by VINAY Kr. SHARMA VINAY Kr. SHARMA, updated 5 years ago by Maurizio Domba Cerin Maurizio Domba Cerin.

MailGun.php Class

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