Module Params Read Only

Hey guys!

I’m learning how to create modules, and i’ve stumbled upon a problem:

I’ve set some params like this in config/main.php: (Its a CWebModule)




'modules'=>array(

        'admin'=>array(

            'description'=>'Administrator Module',

            'menu'=>array(

                'Overview'=>'overview',

                'Users'=>'users'

            )

...



And this gives me a "Property "AdminModule.description" is read only."-error.

And the menu gives a "Property "AdminModule.menu" is not defined."-error.

Why is this? I thought it would be possible to store some settings in main.php?

Edit: the error occurs when i browse to index.php/admin

Bah. Fixed it.

Of course i had figure it out seconds after posting for help.

I had to declare the variables in the AdminModule.php.