Buenos dias estoy incursionando en yii hace bastante tiempo sin embargo tengo grandes problemas para instalarla extension de yiiuser. esto es bajo ubuntu linux
extraje el archivo
en la carpeta protected
pero cuando hago lo siguiente
yiic migrate --migrationPath=user.migrations
Fatal error: Uncaught exception ‘CException’ with message ‘Application base path “protected” is not a valid directory.’ in /var/www/otrosSitios/yii/framework/base/CApplication.php on line 267
CException: Application base path "protected" is not a valid directory. in /var/www/otrosSitios/yii/framework/base/CApplication.php on line 267
no contento con esto no entendi tampoco la linea esta que hay que hacer
Input admin login, email and password
luego que agregue las lineas pedidas en el layout/main
me arrojo esto
if($isClass && (class_exists($className,false) || interface_exists($className,false)))
312 return self::$_imports[$alias]=$className;
313
314 if(($path=self::getPathOfAlias($alias))!==false)
315 {
316 if($isClass)
317 {
318 if($forceInclude)
319 {
320 if(is_file($path.’.php’))
321 require($path.’.php’);
322 else
323 throw new CException(Yii::t(‘yii’,‘Alias “{alias}” is invalid. Make sure it points to an existing PHP file and the file is readable.’,array(’{alias}’=>$alias)));
324 self::$_imports[$alias]=$className;
325 }
326 else
327 self::$classMap[$className]=$path.’.php’;
328 return $className;
329 }
330 else // a directory
331 {
332 if(self::$_includePaths===null)
333 {
334 self::$_includePaths=array_unique(explode(PATH_SEPARATOR,get_include_path()));
335 if(($pos=array_search(’.’,self::$_includePaths,true))!==false)
Stack Trace
#0
/var/www/otrosSitios/yii/framework/YiiBase.php(196): YiiBase::import("user.UserModule", true)
#1
/var/www/otrosSitios/yii/framework/base/CModule.php(282): YiiBase::createComponent("user.UserModule", "user", null, array("hash" => "md5", "sendActivationMail" => true, "loginNotActiv" => false, "activeAfterRegister" => false, …))
#2
–
/var/www/otrosSitios/julieta/protected/views/layouts/main.php(35): CModule->getModule("user")
30 <?php $this->widget(‘zii.widgets.CMenu’,array(
31 ‘items’=>array(
32 array(‘label’=>‘Home’, ‘url’=>array(’/site/index’)),
33 array(‘label’=>‘About’, ‘url’=>array(’/site/page’, ‘view’=>‘about’)),
34 array(‘label’=>‘Contact’, ‘url’=>array(’/site/contact’)),
35 array(‘url’=>Yii::app()->getModule(‘user’)->loginUrl, ‘label’=>Yii::app()->getModule(‘user’)->t(“Login”), ‘visible’=>Yii::app()->user->isGuest),
36 array(‘url’=>Yii::app()->getModule(‘user’)->registrationUrl, ‘label’=>Yii::app()->getModule(‘user’)->t(“Register”), ‘visible’=>Yii::app()->user->isGuest),
37 array(‘url’=>Yii::app()->getModule(‘user’)->profileUrl, ‘label’=>Yii::app()->getModule(‘user’)->t(“Profile”), ‘visible’=>!Yii::app()->user->isGuest),
38 array(‘url’=>Yii::app()->getModule(‘user’)->logoutUrl, ‘label’=>Yii::app()->getModule(‘user’)->t(“Logout”).’ (’.Yii::app()->user->name.’)’, ‘visible’=>!Yii::app()->user->isGuest),
39 array(‘label’=>‘Login’, ‘url’=>array(’/site/login’), ‘visible’=>Yii::app()->user->isGuest),
40 array(‘label’=>‘Logout (’.Yii::app()->user->name.’)’, ‘url’=>array(’/site/logout’), ‘visible’=>!Yii::app()->user->isGuest)
#3
/var/www/otrosSitios/yii/framework/web/CBaseController.php(126): require("/var/www/otrosSitios/julieta/protected/views/layouts/main.php")
#4
/var/www/otrosSitios/yii/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/otrosSitios/julieta/protected/views//layouts/main.php", array("content" => "<div id="content"> <h1>Welcome to <i>My Web Application</i></h…"), true)
#5
/var/www/otrosSitios/yii/framework/web/widgets/CContentDecorator.php(76): CBaseController->renderFile("/var/www/otrosSitios/julieta/protected/views//layouts/main.php", array("content" => "<div id="content"> <h1>Welcome to <i>My Web Application</i></h…"), true)
#6
/var/www/otrosSitios/yii/framework/web/widgets/CContentDecorator.php(54): CContentDecorator->decorate("<div id="content"> <h1>Welcome to <i>My Web Application</i></h…")
#7
/var/www/otrosSitios/yii/framework/web/widgets/COutputProcessor.php(44): CContentDecorator->processOutput("<div id="content"> <h1>Welcome to <i>My Web Application</i></h…")
#8
/var/www/otrosSitios/yii/framework/web/CBaseController.php(214): COutputProcessor->run()
#9
/var/www/otrosSitios/yii/framework/web/CBaseController.php(308): CBaseController->endWidget("CContentDecorator")
#10
–
/var/www/otrosSitios/julieta/protected/views/layouts/column1.php(6): CBaseController->endContent()
1 <?php /* @var $this Controller */ ?>
2 <?php $this->beginContent(’//layouts/main’); ?>
3 <div id="content">
4 <?php echo $content; ?>
5 </div><!-- content -->
6 <?php $this->endContent(); ?>
#11
/var/www/otrosSitios/yii/framework/web/CBaseController.php(126): require("/var/www/otrosSitios/julieta/protected/views/layouts/column1.php")
#12
/var/www/otrosSitios/yii/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/otrosSitios/julieta/protected/views//layouts/column1.ph…", array("content" => " <h1>Welcome to <i>My Web Application</i></h1> <p>Congratulatio…"), true)
#13
/var/www/otrosSitios/yii/framework/web/CController.php(784): CBaseController->renderFile("/var/www/otrosSitios/julieta/protected/views//layouts/column1.ph…", array("content" => " <h1>Welcome to <i>My Web Application</i></h1> <p>Congratulatio…"), true)
#14
–
/var/www/otrosSitios/julieta/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
/var/www/otrosSitios/yii/framework/web/actions/CInlineAction.php(49): SiteController->actionIndex()
#16
/var/www/otrosSitios/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array())
#17
/var/www/otrosSitios/yii/framework/web/CController.php(286): CController->runAction(CInlineAction)
#18
/var/www/otrosSitios/yii/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array())
#19
/var/www/otrosSitios/yii/framework/web/CWebApplication.php(282): CController->run("")
#20
/var/www/otrosSitios/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("")
#21
/var/www/otrosSitios/yii/framework/base/CApplication.php(185): CWebApplication->processRequest()
#22
–
/var/www/otrosSitios/julieta/index.php(13): CApplication->run()
alguie me podria ayudar estoy bastante perdido muchas gracias