Connect Module To Frontend Of Yiinitializr

Help me, i can’t understand how connect the module to the frontend of Yiinitializr.

I get CException SiteController cannot find the requested view "error". with status 500.

Browser url http://frontend.l-wolq.net/index.php?r=forum/site -> i see the main page of frontend(incorrect?)

Browser url http://frontend.l-wolq.net/forum/site -> i see error

/frontend/modules/forum/ForumModule.php




<?php

class ForumModule extends CWebModule

{


}



/frontend/modules/forum/views/site/index.php




<?php

 echo ('main forum page');

 echo CHtml::link('Forum', array('forum/site/index'));  // show link



/frontend/modules/forum/controllers/SiteController.php




<?php

class SiteController extends Controller

{

	public $breadcrumbs = array();


	public function actionIndex()

	{

		$this->render('index');

	}

}



frontend/config/frontend.php




...

	'modules' => array(

		'forum'=>array(

			'class' => 'frontend.modules.forum.ForumModule',

		),

	),

...



the error page is under views/site

Thanks. I find the solution. Error was in incorrect name class Controller instead of CController

/frontend/modules/forum/controllers/SiteController.php




<?php

//class SiteController extends Controller <- error

class SiteController extends CController

{

        public $breadcrumbs = array();


        public function actionIndex()

        {

                $this->render('index');

        }

}



Hi,

please see this link…

http://www.benjaminlhaas.com/blog/installing-yii-users-and-rights-5-steps

hope it will be help…