I know 1.04 isn't out yet, but I got the latest from SVN.
My Modules don't work anymore.
Missing argument 1 for VideoModule::init(), called in C:xampplitehtdocsyii1frameworkbaseCModule.php on line 78 and defined
Source File
C:xampplitehtdocsyii1webrootflocmsprotectedmodulesvideoVideoModule.php(11)
00001: <?php
00002:
00003: class VideoModule extends FloWebModule
00004: {
00009: public $assetsPath;
00010:
00011: public function init($config)
00012: {
00013: parent::init($config);
00014: // this method is called when the module is being created
00015: // you may place code here to customize the module or the application
00016:
00017: Yii::import('application.modules.video.models.*');
00018:
00019: Yii::app()->params['currentContentType'] = 'Video';
00020:
00021: }
00022: }
What is the new way to work with modules and what has changed?
I changed line 78 of CModule.php from $this->init() to $this->init($config). Not sure if that's correct but it works. Please confirm or provide correct fix. Thanks!
00011: public function init($config)
00012: {
00013: parent::init($config);
00014: // this method is called when the module is being created
00015: // you may place code here to customize the module or the application
00016:
00017: Yii::import('application.modules.video.models.*');
00018:
00019: Yii::app()->params['currentContentType'] = 'Video';
00020:
00021: }
00022: }