hello guys now i am going to show you how to Reuse File Upload Code across multiple projects.
Suppose we want to set a category to product (or an item in general term), Also suppose categories has sub-categories (multi-level)
Suppose you want to have a list in Category with its related products and you want to updates the list (removing or insert product items) This wiki show us how to do that
There are several ways to speedup slow unit tests which interact with database:
The yii2-datecontrol extension allows you to control separate date formats for display and saving for form inputs.
There are cases that you want to make an ajax request to another server and get the results.
The yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.
This wiki shows how to get the geolocation info of the client using another server API It could be write also as extension but there are a lots of APIs that change the below code So, I wrote the below code that works for one of them (using www.geoplugin.net)
You have a 'Category' model with Id, Name and Visibility (boolean, where 0 = Public, and 1 = Private).
According to below wiki we could migrate database schema to another database
Awhile ago I was trying to find a database driven CMenu system to add to my web applications. This always seemed to me that it would be a lot easier to manage if it where in a database. So the following is the results of that effort:
** I actually made this into an extension for easier use. You can view the extension: http://www.yiiframework.com/extension/rackspaceconnect/