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',
),
),
...