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 ?
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 ?
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.
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.
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/
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)
How to check the online users or how to logout a specific user from your admin panel? This wiki shows how to do that
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)
CGridview displays existent rows of the table (using DataProvider)
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
Suppose we want to set a category to product (or an item in general term), Also suppose categories has sub-categories (multi-level)
hello guys now i am going to show you how to Reuse File Upload Code across multiple projects.
My goal here is to Open bootstrap modal and load ANY content using ajax response.
There are cases you want to update a record on CGridview directly
This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button)
The classic Yii way for doing an update action is as follows:
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