Wiki

Sorted by date (updated)X
Displaying 441-450 of 747 result(s).

YiiBoilerplate - Setup a professional project structure in seconds

Updated 2 years ago by Antonio RamirezOthers53 comments – viewed 50,570 times – ( +48 ) – version 1.1
YiiBoilerplate
tags: directory, config

Accessing data in a join table with the related models

Updated 2 years ago by kroweHow-tos8 comments – viewed 80,068 times – ( +26 / -1 ) – version 1.1
Sometimes the right place to store application data is in a join table. For example, movie viewers either like or don’t like the movies they watched.

Create your own Validation Rule

Updated 2 years ago by GismoHow-tos13 comments – viewed 144,952 times – ( +75 / -3 ) – version 1.1
Some times the core validation rules provided by Yii won't satisfy all your needs, so you'll need to create your very own validation rule.

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

Updated 2 years ago by Maurizio Domba CerinTips3 comments – viewed 10,678 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 2 years ago by TpoxaHow-tos4 comments – viewed 15,787 times – ( +4 ) – version 1.1
For example have folder with image resources which are public accessible
tags: yii, image-resize

XUpload Workflow

Updated 2 years ago by AsgarothTutorials33 comments – viewed 56,671 times – ( +34 ) – version 1.1
This wiki describes a more complex workflow using the XUpload widget

Using International Dates

Updated 2 years ago by nkdHow-tos4 comments – viewed 31,731 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 2 years ago by Rodrigo CoelhoTips2 comments – viewed 56,645 times – ( +21 ) – 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 6,343 times – ( +2 ) – version 1.1
[EN] [ES]