[Wiki] YII2 : simple language Switcher Widget
create file common\components\languageSwitcher.php <?php /* author :: Pitt Phunsanit website :: http://plusmagi.com change language by get language=EN, language=TH,... or select on this widget */...
View Article[Extension] yii2-app-advanced-startup-kit
Yii 2 Practical Advanced Application Template (GUI Startup Kit)
View Article[Extension] yii2-ga-measurement-protocol
Google Analytics Measurement Protocol for Yii2
View Article[Wiki] How to create yii2 extension and push to github and register into...
1. Create Extension in yii2. As for this step, you can refer to Create Extension In short, you can use gii to create extension after read above article. Just be care to change the output as...
View Article[Wiki] Single PHP entry point with Nginx
In this article I will show you how to slightly increase application security, by exploiting the fact that Yii implements the Front Controller Pattern. Introduction While surfing the web, I noticed...
View Article[Extension] yii2-nestable
Yii 2.0 implementation of nested set behavior using jquery.nestable plugin
View Article[Wiki] Building a search GET request with scenarios ; calling a SearchModel...
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. Doing...
View Article[Extension] decimalvalidator
This code is some I wrote to try and enforce data constraints for DECIMAL(m,n) column format.
View Article[Wiki] Before Query Example : Soft Delete
This is how i do before query on Yii 2.0 1. Base Trait Before Query namespace common\traits\base; trait BeforeQueryTrait{ public static function find() { $obj = new static; $class = new...
View Article[Extension] currency-formator
Its a small utility to convert Indian currency to words format
View Article[Wiki] [Guide] How to actually separate Frontend (User) and Backend (Admin)...
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...
View Article