Wiki articles

Showing 61-80 of 153 items.

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 870 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: 16 203 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 823 times
Version: all
Category: How-tos
2 0
3 followers
Viewed: 25 349 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: 24 189 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 876 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.

20 0
27 followers
Viewed: 203 331 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 815 times
Version: 2.0
Category: Tutorials

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: 107 361 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 646 times
Version: 2.0
Category: How-tos

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: 10 082 times
Version: 2.0
Category: Tips

Debuging variables in Yii2

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

This tutorial is explained following "basic" application structure.

4 1
7 followers
Viewed: 27 984 times
Version: 2.0
Category: Tips

`forceCopy` per Asset Bundle

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

YII2 Pagination Options

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

solution here If we are using default pagination option like

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

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

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

6 0
5 followers
Viewed: 27 421 times
Version: 2.0
Category: How-tos

Running applications with Docker

Created 5 years ago by schmunk, updated 5 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: 38 370 times
Version: 2.0
Category: Tutorials

Drills : Search by a HAS_MANY relation in Yii 2.0

Created 5 years ago by softark, updated a year ago by softark.

This article tries to describe the practical techniques of searching by a HAS_MANY relation using ActiveRecord of Yii 2.0.

12 0
13 followers
Viewed: 84 692 times
Version: 2.0
Category: Tutorials

Moving the vendor directory for multiple projects

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

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

4 0
4 followers
Viewed: 23 442 times
Version: 2.0
Category: How-tos

Pjax on ActiveForm and GridView - Yii2

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

6 0
15 followers
Viewed: 137 208 times
Version: 2.0
Category: How-tos

RBAC Super Simple with Admin and User

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

6 1
14 followers
Viewed: 86 127 times
Version: 2.0
Category: Tutorials