Wiki

Sorted by date (updated)X
Displaying 391-400 of 705 result(s).

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Updated about a year ago by Maurizio Domba CerinTips3 comments – viewed 9,443 times – ( +1 ) – version 1.1
I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it or on the 'select all' checkbox.

Image resize on the fly

Updated about a year ago by TpoxaHow-tos4 comments – viewed 13,544 times – ( +4 ) – version 1.1
For example have folder with image resources which are public accessible
tags: yii, image-resize

XUpload Workflow

Updated about a year ago by AsgarothTutorials32 comments – viewed 49,046 times – ( +34 ) – version 1.1
This wiki describes a more complex workflow using the XUpload widget

Using International Dates

Updated about a year ago by nkdHow-tos4 comments – viewed 29,479 times – ( +18 ) – version 1.1
I needed British (dd/mm/yyyy) formatted dates throughout my application but found it very difficult to find examples of how to do this - until I found this excellent forum post http://www.yiiframework.com/forum/index.php?/topic/3649-dealing-with-i18n-date-formats/

The complete beginner's study guide for the Yii Framework

Updated about a year ago by Rodrigo CoelhoTips2 comments – viewed 48,310 times – ( +20 ) – version 1.1
Start studying the MVC pattern. You will understand the roles of the model, the view and the controller and know where goes each part of the code.

Instanciar clase hija basada en campo de modelo padre (CActiveRecord)

Updated 2 years ago by robregonmHow-tos0 comments – viewed 5,310 times – ( +2 ) – version 1.1
[EN] [ES]

pass variables or content block from view file to layout file

Updated 2 years ago by Maurizio Domba CerinHow-tos0 comments – viewed 13,765 times – ( +2 ) – version 1.1
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.

Create custom button button with AJAX function in CGridView

Updated 2 years ago by nkdHow-tos1 comment – viewed 35,144 times – ( +14 ) – version 1.1
CButtonColumn in CGridView can be customised to include user built buttons. To learn a great deal about including custom buttons, read this excellent wiki. This tutorial will show how to call an action from one custom button using AJAX instead of regular GET calls.

Integrating Wordpress and Yii,Working Out The Details.

Updated 2 years ago by drumaddictHow-tos4 comments – viewed 16,307 times – ( +8 ) – version 1.1
This article is based on fr0d0z's article Integrating Wordpress and Yii: still another approach, using Yii as the router/controller and provides more details on how to set up this integration.To be more specific,the idea is not to use any main.php layout in Yii's controllers.This gives the advantage that we do not need to modify any Yii code when we switch a theme in WordPress admin panel,provided we have done a very basic setup which I explain below.
tags: wordpress