I was able to set up the infinite scroll of select2 in Yii. I am glad to share it with you. The demo and source code can be found here. However, select2 for Yii can be found here which uses a widget.
Here is my solution to login with email or anything else This update works with database mysql You must generate the user model with GII
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)
There are cases you want to update a record on CGridview directly
My goal here is to Open bootstrap modal and load ANY content using ajax response.
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)
After of model update (successfull or not) throught CGridView (check the below link) you probably need to updates the specific row html in cgridview (not entire cgridview)
How to check the online users or how to logout a specific user from your admin panel? This wiki shows how to do that
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)
First of all this is a very common problem, for more details see this post http://www.yiiframework.com/forum/index.php/topic/52052-upload-file-with-any-charset/
Once you have installed and configured the rights extension in your application, you can change the table name from 'User' to any table name you want and similarly for 'username' column to any other column name.
Here's a simple way to create a Recent comments showing widget to be used in your templates. The idea is just to highlighting your blog's new comments.
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 ?