Common Yii questions

Comparing #7 with #9

Revision #9 was created by Thomas Jensen Thomas Jensen on Oct 17, 2011, 4:33:14 PM.

Changed "true" to "false" in question 1. "true" means DO validate.

Content

[...]
return $this->getIsNewRecord() ? $this->insert($attributes) : $this->update($attributes);
else
return false;
}
```
if you don't want it to validate just do **$method->save(
trufalse);**

<hr/>
[...]
```php
array(
'site/action/<id:\d+>' => 'site/action
'
)
```

In your you can set **$id** like this: **actionPage($id)**
[...]