\modules\cPanel\
CPanelModule.php
Код: Выделить всё
<?php
class CPanelModule extends CWebModule
{
public function init()
{
$this->setImport(array(
'cPanel.models.*',
'cPanel.components.*',
));
}
public function beforeControllerAction($controller, $action)
{
if(parent::beforeControllerAction($controller, $action))
{
return true;
}
else
return false;
}
}
Дефолтовый контроллейр HomeController.php
Код: Выделить всё
class HomeController extends Controller
{
public function actionIndex()
{
// устанавливаем каркас
$this->layout = 'cpanel';
// вид
$this->render('index', array(
'param'=>$param
));
}
// ОТЧЕТНОСТИ
public function actionReporting(array $params)
{
print_r($params);
}
запускаю сайт.ru/cPanel/Reporting - не могу попасть
пошел копать urlManager
Код: Выделить всё
'cPanel/reporting/<params:\w+>' => 'cPanel/home/reporting',
так же не могу отключить регистр, сайт.ru/cpanel - так же не работает.
Подскажите пожалуйста в чем проблема ?