The classic Yii way for doing an update action is as follows:
The classic Yii way for doing an update action is as follows:
This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button)
Yii2 introduces the BootstrapInterface to ease our application initialization tasks, whether they are composer
based or Application bootstrap (do not mistaken with Bootstrap CSS Framework) based tasks. On this article, I am going to explain how to use it on y...
If you use yiic to generate webApplication there will be a layout folder under the protected/views/, and the Controller class under protected/components which will use by default these layouts files.
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
CGridview displays existent rows of the table (using DataProvider)
I spend a bit of time looking for the this piece of code while building time feature on a site this tutorial also helped Local time zones and locales
The yii2-datecontrol extension allows you to control separate date formats for display and saving for form inputs.
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).
will generate twitter bootstrap styled breadcrumb code:
This wiki will explain how you can use the Field range extension with multiple Bootstrap form layouts (vertical or horizontal). You maybe aware, that 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.
change your index.php
CMenu comes with a lot of great customization options built in. One of the most used is the class 'active' being added to menu item. But, what if you want to add your own class or id to a menu item ?