Wiki

Sorted by viewsX
Displaying 101-110 of 467 result(s).

Displaying image in a CGridView column.

Created about a year ago by sirin kHow-tos5 comments – viewed 22,432 times – ( +12 / -1 )
This is a simple example of how we can display images in CGridviews.Imagine that you have an image field in your table ie either a location field or a blob type field used to store the images.
tags: CGridView, image

Using setFlash for displaying various kind of messages

Created 2 years ago by TrejderHow-tos6 comments – viewed 22,265 times – ( +4 / -4 )
In this short how-to I will show how to customize setFlash() to display messages (flashes) styled to be success confirmation, error report or notice information. And how to achieve displaying errors in other way.
tags: flash, error, message

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 2 years ago by xrxHow-tos13 comments – viewed 22,129 times – ( +20 )
Since I used CGridView for a first time, I didn't like how it handled operations like sorting, filtering, changing page and etc using AJAX.

Adding Yii Search to Your Browser Search Box

Created 2 years ago by qiangTips1 comment – viewed 21,878 times – ( +26 )
The official Yii project site now supports OpenSearch. This means you can customize your browser's search box to enable direct search of the content in yiiframework.com. For example, by entering a Yii class name in the browser's search box, the corresponding class API page will be shown in the browser.
tags: search

Special $variables in CGridView and CListView

Created about a year ago by Steve FriedlTips8 comments – viewed 21,721 times – ( +18 / -1 )
The popular CListView and CGridView widgets each take a data provider and iterate over each data object produced, calling the user's code to render each row one at a time, and most are familiar with the use of the $data variable to represent the current model object or array.

Styling Radio Buttons

Created 2 years ago by Steve FriedlTips2 comments – viewed 21,718 times – ( +10 )
The default behavior with radio button lists is ugly, and I figured out mostly how to style them a coupla different ways. I'll used the blog tutorial example (but with my own posting modes):

CGridView: Display the full record (actionView) in a CJuiDialog

Created about a year ago by JobloTips7 comments – viewed 21,493 times – ( +13 )
If you show a model (with a lot of attributes) partially in a CGridView, it can be helpful when the user can take a quick look at the full record with all attributes without displaying the view as a page and afterwards returning back to the gridview.

YiiBoilerplate - Setup a professional project structure in seconds

Created 8 months ago by Antonio RamirezOthers49 comments – viewed 21,333 times – ( +40 )
YiiBoilerplate
tags: directory, config

Custom Autocomplete Display and Value Submission

Created about a year ago by Antonio RamirezHow-tos5 comments – viewed 21,326 times – ( +12 / -1 )
How many of us has wondered how to create an autocomplete that will display the names of a related models but do require the id of that selected name to be submitted for model creation/update?

Integrating Yii with Wordpress

Created about a year ago by isekreamTips4 comments – viewed 21,213 times – ( +9 / -1 )
Well I finally had some time and tinkered a bit with the notion of integrating wordpress and Yii. Now for me I wanted to use Yii as a framework to develop wordpress plugins. Using some tips from imasia Article I was able to do a simple integration of yii as a wordpress plugin. The integration was very basic and i just used yii with its default installation site. I don;t know how it will really react with CRUD application as yet but it was fairly easy to integrate after reading the article...