Hi,
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)
if you have use the yiibooster extension, you have definitely used the amazing redactor, html5 and ckEditor editors.
In order to get your Yii logs into Heroku's logs, you have to work a little bit of magic. You'll need to modify the boot.sh script and add the following two lines: ~~~ touch /app/apache/logs/app_log tail -F /app/apache/logs/app_log & ~~~ This will set up the log and tail it so that when you request "heroku logs", this log is included.
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)
Everyone have seen a multilayer menu in several CMS
Do you want to make a listbox or dropdownlist to select one or more categories or sub categories ?
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.
If you want to edit data directly in the gridview in a 'dropdownlist' style, then you could use the 'type' => 'select' option of TbEditableColumn (YiiBooster) or EditableColumn (x-editable for Yii). This wiki shows how to get data from the db for the 'dropdownlist', by converting AR model data into an array that is passed in json format.
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
For best experience,use Chrome.Other browsers may complain here and there.Sorry,no patience to make happy every freaking browser out there!
The classic Yii way for doing an update action is as follows: