Yii Framework Forum: Problem in using theme in Yii1.1 - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Problem in using theme in Yii1.1 Alias "F:.xampp.htdocs.support.themes.forest.views.admin" is i

#1 User is offline   Vikas Kumar 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 28-August 17

Posted 28 April 2018 - 12:12 PM

Hi all,
I am locally setup yii 1.1 on my windows system with xampp as a php server but I am getting error.
Alias "F:.xampp.htdocs.support.themes.forest.views.admin" is invalid. Make sure it points to an existing directory or file.

I am not able to get where can I fix the problem. I also add the theme configuration in config/main.php

F:\xampp\htdocs\support\yii-1.1.19.5790cb\framework\YiiBase.php(295)

283 self::$_imports[$alias]=$alias;
284 }
285 else
286 self::$classMap[$alias]=$classFile;
287 return $alias;
288 }
289 else
290 {
291 // try to autoload the class with an autoloader
292 if (class_exists($alias,true))
293 return self::$_imports[$alias]=$alias;
294 else
295 throw new CException(Yii::t('yii','Alias "{alias}" is invalid. Make sure it points to an existing directory or file.',
296 array('{alias}'=>$namespace)));
297 }
298 }
299
300 if(($pos=strrpos($alias,'.'))===false) // a simple class name
301 {
302 // try to autoload the class with an autoloader if $forceInclude is true
303 if($forceInclude && (Yii::autoload($alias,true) || class_exists($alias,true)))
304 self::$_imports[$alias]=$alias;
305 return $alias;
306 }
307
Stack Trace
#0
– F:\xampp\htdocs\support\themes\forest\views\admin\layouts\main.php(52): YiiBase::import("F:\xampp\htdocs\support\themes\forest\views\admin\layouts/topbar", true)
47 z-index: 9999;
48 background: url(<?php echo Yii::app()->theme->baseUrl ?>/images/Preloader_11.gif) center no-repeat rgba(255,255,255,0.5);
49 display:none;
50 }
51 </style>
52 <?php Yii::import(dirname(__FILE__).'/topbar',true);?>
53 <?php
54 $this->widget('zii.widgets.CBreadcrumbs', array(
55 'homeLink'=>CHtml::link('Home','#' /*$this->createUrl('default/index')*/, array('title'=>'Home')),
56 'links'=>$this->breadcrumbs,
57 ));
#1
+ F:\xampp\htdocs\support\yii-1.1.19.5790cb\framework\web\CBaseController.php(126): require("F:\xampp\htdocs\support\themes\forest\views\admin\layouts\main.p...")
#2
+ F:\xampp\htdocs\support\yii-1.1.19.5790cb\framework\web\CBaseController.php(95): CBaseController->renderInternal("F:\xampp\htdocs\support\themes\forest\views/admin/layouts/main.p...", array("content" => "<link rel="stylesheet" href="/support/themes/forest/css/fancyChe..."), true)
#3
+ F:\xampp\htdocs\support\yii-1.1.19.5790cb\framework\web\CController.php(787): CBaseController->renderFile("F:\xampp\htdocs\support\themes\forest\views/admin/layouts/main.p...", array("content" => "<link rel="stylesheet" href="/support/themes/forest/css/fancyChe..."), true)
#4
– F:\xampp\htdocs\support\protected\modules\admin\controllers\TicketController.php(6237): CController->render("index", array("model" => Ticket, "usert" => null, "selectedItem" => null, "follow_up" => null))
6232 $this->render('index', array(
6233 'model' => $model,
6234 'usert' =>$usert,
6235 'selectedItem'=>$selectedItem,
6236 'follow_up'=>NULL,
6237 ));
6238 }
6239
6240 public function actionSearch() {
6241
6242 $myfile = fopen("logx.txt", "a") or die("Unable to open file!");
#5
+ F:\xampp\htdocs\support\yii-1.1.19.5790cb\framework\web\actions\CInlineAction.php(49): TicketController->actionIndex()
#6
+ F:\xampp\htdocs\support\yii-1.1.19.5790cb\framework\web\CController.php(308): CInlineAction->runWithParams(array())
#7
+ F:\xampp\htdocs\support\yii-1.1.19.5790cb\framework\web\filters\CFilterChain.php(134): CController->runAction(CInlineAction)
#8
+ F:\xampp\htdocs\support\yii-1.1.19.5790cb\framework\web\filters\CFilter.php(40): CFilterChain->run()
#9
+ F:\xampp\htdocs\support\yii-1.1.19.5790cb\framework\web\CController.php(1148): CFilter->filter(CFilterChain)
#10
+ F:\xampp\htdocs\support\yii-1.1.19.5790cb\framework\web\filters\CInlineFilter.php(58): CController->filterAccessControl(CFilterChain)
#11
+ F:\xampp\htdocs\support\yii-1.1.19.5790cb\framework\web\filters\CFilterChain.php(131): CInlineFilter->filter(CFilterChain)
#12
+ F:\xampp\htdocs\support\yii-1.1.19.5790cb\framework\web\CController.php(291): CFilterChain->run()
#13
+ F:\xampp\htdocs\support\yii-1.1.19.5790cb\framework\web\CController.php(265): CController->runActionWithFilters(CInlineAction, array("accessControl"))
#14
+ F:\xampp\htdocs\support\yii-1.1.19.5790cb\framework\web\CWebApplication.php(282): CController->run("index")
#15
+ F:\xampp\htdocs\support\yii-1.1.19.5790cb\framework\web\CWebApplication.php(141): CWebApplication->runController("admin/ticket/index")
#16
+ F:\xampp\htdocs\support\yii-1.1.19.5790cb\framework\base\CApplication.php(185): CWebApplication->processRequest()
#17
– F:\xampp\htdocs\support\index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 //defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users