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

Revision #4 has been created by schmunk on Dec 7, 2011, 4:36:32 PM with the memo:

added "The echo too much"
« previous (#3) next (#5) »

Changes

Title unchanged

The Comedy of Errors

Category unchanged

Others

Yii version unchanged

Tags unchanged

errors

Content changed

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

Now spend your time debugging why $model->label has no value set.

The echo too much
 
-----------------
 
In the view put:
 
 
```php 
<h1>Edit item: <?php echo $this->widget('CWidget'); ?></h1>
 
```
 
"Object of class CWidget could not be converted to string." A widget may not have an echo.
 
 
 

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

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