CException
Alias "user.UserModule" is invalid. Make sure it points to an existing PHP file.
C:\xampp\htdocs\yii\framework\YiiBase.php(318)
306 if($isClass && (class_exists($className,false) || interface_exists($className,false)))
307 return self::$_imports[$alias]=$className;
308
309 if(($path=self::getPathOfAlias($alias))!==false)
310 {
311 if($isClass)
312 {
313 if($forceInclude)
314 {
315 if(is_file($path.’.php’))
316 require($path.’.php’);
317 else
318 throw new CException(Yii::t(‘yii’,‘Alias “{alias}” is invalid. Make sure it points to an existing PHP file.’,array(’{alias}’=>$alias)));
319 self::$_imports[$alias]=$className;
320 }
321 else
322 self::$classMap[$className]=$path.’.php’;
323 return $className;
324 }
325 else // a directory
326 {
327 if(self::$_includePaths===null)
328 {
329 self::$_includePaths=array_unique(explode(PATH_SEPARATOR,get_include_path()));
330 if(($pos=array_search(’.’,self::$_includePaths,true))!==false)
Stack Trace
#0
C:\xampp\htdocs\yii\framework\YiiBase.php(198): YiiBase::import("user.UserModule", true)
#1
C:\xampp\htdocs\yii\framework\base\CModule.php(283): YiiBase::createComponent("user.UserModule", "user", null, array())
#2
–
C:\xampp\htdocs\demo\protected\views\layouts\main.php(31): CModule->getModule("user")
26 </div><!-- header -->
27
28 <div id="mainmenu">
29 <?php $this->widget(‘zii.widgets.CMenu’,array(
30 ‘items’=>array(
31 array(‘url’=>Yii::app()->getModule(‘user’)->loginUrl, ‘label’=>Yii::app()->getModule(‘user’)->t(“Login”), ‘visible’=>Yii::app()->user->isGuest),
32 array(‘url’=>Yii::app()->getModule(‘user’)->registrationUrl, ‘label’=>Yii::app()->getModule(‘user’)->t(“Registration”), ‘visible’=>Yii::app()->user->isGuest),
33 array(‘url’=>Yii::app()->getModule(‘user’)->profileUrl, ‘label’=>Yii::app()->getModule(‘user’)->t(“Profile”), ‘visible’=>!Yii::app()->user->isGuest),
34 array(‘url’=>Yii::app()->getModule(‘user’)->logoutUrl, ‘label’=>Yii::app()->getModule(‘user’)->t(“Logout”).’ (’.Yii::app()->user->name.’)’, ‘visible’=>!Yii::app()->user->isGuest),
35 array(‘label’=>‘Home’, ‘url’=>array(’/site/index’)),
36 array(‘label’=>‘About’, ‘url’=>array(’/site/page’, ‘view’=>‘about’)),
#3
C:\xampp\htdocs\yii\framework\web\CBaseController.php(127): require("C:\xampp\htdocs\demo\protected\views\layouts\main.php")
#4
C:\xampp\htdocs\yii\framework\web\CBaseController.php(96): CBaseController->renderInternal("C:\xampp\htdocs\demo\protected\views//layouts/main.php", array("content" => "<div id="content"> <h1>Welcome to <i>My Web Application</i></h…"), true)
#5
C:\xampp\htdocs\yii\framework\web\widgets\CContentDecorator.php(77): CBaseController->renderFile("C:\xampp\htdocs\demo\protected\views//layouts/main.php", array("content" => "<div id="content"> <h1>Welcome to <i>My Web Application</i></h…"), true)
#6
C:\xampp\htdocs\yii\framework\web\widgets\CContentDecorator.php(55): CContentDecorator->decorate("<div id="content"> <h1>Welcome to <i>My Web Application</i></h…")
#7
C:\xampp\htdocs\yii\framework\web\widgets\COutputProcessor.php(45): CContentDecorator->processOutput("<div id="content"> <h1>Welcome to <i>My Web Application</i></h…")
#8
C:\xampp\htdocs\yii\framework\web\CBaseController.php(207): COutputProcessor->run()
#9
C:\xampp\htdocs\yii\framework\web\CBaseController.php(301): CBaseController->endWidget("CContentDecorator")
#10
–
C:\xampp\htdocs\demo\protected\views\layouts\column1.php(5): CBaseController->endContent()
1 <?php $this->beginContent(’//layouts/main’); ?>
2 <div id="content">
3 <?php echo $content; ?>
4 </div><!-- content -->
5 <?php $this->endContent(); ?>
#11
C:\xampp\htdocs\yii\framework\web\CBaseController.php(127): require("C:\xampp\htdocs\demo\protected\views\layouts\column1.php")
#12
C:\xampp\htdocs\yii\framework\web\CBaseController.php(96): CBaseController->renderInternal("C:\xampp\htdocs\demo\protected\views//layouts/column1.php", array("content" => " <h1>Welcome to <i>My Web Application</i></h1> <p>Congratulatio…"), true)
#13
C:\xampp\htdocs\yii\framework\web\CController.php(785): CBaseController->renderFile("C:\xampp\htdocs\demo\protected\views//layouts/column1.php", array("content" => " <h1>Welcome to <i>My Web Application</i></h1> <p>Congratulatio…"), true)
#14
–
C:\xampp\htdocs\demo\protected\controllers\SiteController.php(32): CController->render("index")
27 */
28 public function actionIndex()
29 {
30 // renders the view file ‘protected/views/site/index.php’
31 // using the default layout ‘protected/views/layouts/main.php’
32 $this->render(‘index’);
33 }
34
35 /**
36 * This is the action to handle external exceptions.
37 */
#15
C:\xampp\htdocs\yii\framework\web\actions\CInlineAction.php(50): SiteController->actionIndex()
#16
C:\xampp\htdocs\yii\framework\web\CController.php(309): CInlineAction->runWithParams(array())
#17
C:\xampp\htdocs\yii\framework\web\CController.php(287): CController->runAction(CInlineAction)
#18
C:\xampp\htdocs\yii\framework\web\CController.php(266): CController->runActionWithFilters(CInlineAction, array())
#19
C:\xampp\htdocs\yii\framework\web\CWebApplication.php(276): CController->run("")
#20
C:\xampp\htdocs\yii\framework\web\CWebApplication.php(135): CWebApplication->runController("")
#21
C:\xampp\htdocs\yii\framework\base\CApplication.php(162): CWebApplication->processRequest()
#22
C:\xampp\htdocs\demo\index.php(13): CApplication->run()
2012-01-27 21:41:17 Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 Yii Framework/1.1.9