Difference between #7 and #8 of
The Comedy of Errors

Revision #8 has been created by rAWTAZ on Jan 1, 2013, 12:06:31 PM with the memo:

Clarified some text and added a new comedy entry.
« previous (#7) next (#9) »

Changes

Title unchanged

The Comedy of Errors

Category unchanged

Others

Yii version unchanged

Tags changed

errors comedy

Content changed

[...]
```php
<h1>Edit item: <?php $model->label; ?></h1>
```

Now spend your time debugging why
$model->label has no value set.you are not seeing the value of $model->label even though you are clearly asking for it.
 


The echo too much
[...]
The true false
 
--------------
 
In the config file or wherever you are to provide a boolean value, put:
 
~~~
 
'someOption' => 'false',
 
~~~
 
Then read the PHP manual to find out why this does not evaluate to false like you wanted it to.
 
 

Rules for numbers
-----------------

In the model rules() method put:
[...]
19 0
16 followers
Viewed: 10 883 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