Difference between #4 and #5 of
The Comedy of Errors

Revision #5 has been created by fsb on Dec 8, 2011, 1:38:58 PM with the memo:

enums
« previous (#4) next (#6) »

Changes

Title unchanged

The Comedy of Errors

Category unchanged

Others

Yii version unchanged

Tags unchanged

errors

Content changed

[...]
then try

```php
array('count', 'numeric', 'integerOnly'=>true),
```
and only then look it up: 'numerical'.

 
 
 
Rules for enums
 
---------------
 
 
In the model rules() method put:
 
 
```php 
array('format', 'range', 'in' => array('html', 'rss2', 'atom', 'json', 'xml')),
 
```
 
then later remind yourself that Yii is not SQL.
19 0
16 followers
Viewed: 10 887 times
Version: 1.1
Category: Others
Written by: fsb
Last updated by: Mike
Created on: Dec 7, 2011
Last updated: 4 years ago
Update Article

Revisions

View all history