okay okay sorry…
here let me patch things up…
i have two apps, in one major app. the front end and the backend.
the backend has the views folder inside the protected folder and uses it as its primary view.
meanwhile the frontend uses a theme outside the protected folder/in the same level with, as it’s primary view. and i can’t access some of my page due to url errors. the only accessible page is the homepage.
now, when i try to remove the ‘theme’=>‘mytheme’ in the config of course the layout and design is gone…
what i really wanna do here is, if it’s the only way, transfer the views of the theme inside the views under protected. so that when i create a new model, i can access it via url, or link because at my current state… i can’t… well at least only in the frontend app.
here’s my config.php on frontend [i excluded database info and further info’s for security reasons]
/ uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'../protected',
'runtimePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'../runtime',
'name'=>'Viasat OnDemand',
'theme' => 'vod',
'sourceLanguage'=> 'en_US',
'language' => 'ee',
'timeZone' => 'Europe/Stockholm',
// preloading 'log' component
//'preload'=>array('log'),
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
),
'defaultController'=>'event',
'modules'=>array(
// uncomment the following to enable the Gii tool
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'admin',
'generatorPaths'=>array(
'ext.gtc', // Gii Template Collection
),
),
),
// application components
'components'=>array(
'token' => array(
'class' => 'application.components.Token',
'secretKey' => 'phu8ATheT9bu',
'delay' => 600,
),
'dibs' => array(
'class' => 'application.components.Dibs',
'currency' => 'EEK',
'url' => 'https://secure.incab.se/verify/bin/Viasatb/index',
'method' => 'cc.babs', // cc.babs/cc.cekab = live - cc.test = test
'test' => '2', // 0 = live - 2 = test
'pageSet' => 'vod_pay_ee',
'secretKey' => 'B64E424C0AAC3BB1F53228885AC12D40A0DFC346',
'language' => 'ee',
'uses3dsecure' => 'false',
),
/*'cache' => array(
'class'=>'system.caching.CFileCache',
'cachePath'=>'cache',
),*/
'cache'=>array(
'class'=>'system.caching.CMemCache',
'servers'=>array(
array('host'=>'localhost', 'weight'=>60),
),
'keyPrefix'=>'vod_ee_',
'useMemcached' => false,
),
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning, trace',
),
),
),
'mail' => array(
'class' => 'application.components.MailManager',
),
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
),
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName' => true,
'rules'=>array(
'<controller:\w+>'=>'<controller>/index',
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<id:\d+>/<action:\w+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
'playlist/event_<id>'=>array('event/asx', 'urlSuffix'=>'.asx', 'caseSensitive'=>false)
),
),
here’s the config for backend
// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'runtimePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'../runtime',
'name'=>'Admin',
// preloading 'log' component
'preload'=>array('log'),
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
),
'modules'=>array(
// uncomment the following to enable the Gii tool
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'admin',
'generatorPaths'=>array(
'ext.gtc', // Gii Template Collection
),
),
),
// application components
'components'=>array(
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
),
// uncomment the following to enable URLs in path-format
/*'urlManager'=>array(
'caseSensitive' => false,
'showScriptName' => true,
'urlFormat'=>'path',
'rules'=>array(
'login' => 'site/login',
'<view>' => array('site/page'),
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),*/
thanks for the help