Comparing
#3 with
#4
Tags
module
Content
[...]
You call it from within the module:
```php
Yii::app()->controller->module->foo
```
or
```php
Yii::app()->getModule('module')->foo
```
As you can see, your module is indeed just another application, and you can configure any parameters as you'd do with your "root" application. The only organizational differences are:
+ a module has a module "entry point", the FooModule which extends CWebModule. Whereas the root application is bootstrapped by the framework itself, starting with your entry script (index.php)
+ the application's SiteController is called inside a module DefaultController