[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[Extension] yii2-widget-select2
Enhanced Yii2 wrapper for the Select2 jQuery plugin (sub repo split from yii2-widgets)
View Article[News] Yii 2.0.4 is released
We are very pleased to announce the release of Yii Framework version 2.0.4. Please refer to the instructions at http://www.yiiframework.com/download/ to install or upgrade to this version. Version...
View Article[Wiki] Load data from internal/external source to fill form fields
Overview 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...
View Article[Wiki] SELECT WHERE WHERE COUNT from 4 relation
I will explain you our project issue: We Have 4 Relation Tables: User: id, etc. Services: id, user_id, etc. Workdays: id, service_id, workday_id(Weeks - id, weekdayname, etc.) Workhours: id,...
View Article