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