Changes
                            
    Title
    unchanged
    Extending common classes to allow better customization
    Category
    unchanged
    Tips
    Yii version
    unchanged
    
    Tags
    unchanged
    
    Content
    changed
    [...]
```php
<?php
// in protected/components/MyController.php
class MyController extends CController {
}[...]
Note: the common Yii convention is to remove the leading `C` when creating custom classes, by I believe it's more obvious that these are user-defined classes by using the `My` prefix. But choose the convention you prefer.
Note#2: If you're looking at the Blog demo, the application controllers **already** extend from `protected/components/Controller.php`, which is the blog's helper class of this kind - no need to extend it again.
 
 
Once these class files have been created, edit each of your controllers and models:
```php
// in protected/controllers/PostController.php
class PostController extends MyController {[...]