Yii Framework Forum: O que aconteceu com o User Menu Portlet? - Yii Framework Forum

Jump to content

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

O que aconteceu com o User Menu Portlet? Rate Topic: -----

#1 User is offline   lsorgetz 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 17
  • Joined: 01-July 09

Posted 09 July 2009 - 12:38 PM

Pessoal.

Baixei a versão 1.0.7 e não consigo mais fazer funcionar o portlet UserMenu como descrito no guia do blog.

Alguém passou por isso?

Dá o seguinte erro:


YiiBase::include(Portlet.php) [<a href='function.YiiBase-include'>function.YiiBase-include</a>]: failed to open stream: No such file or directory
Source File

/projetos/yii/yii-1.0.7/framework/YiiBase.php(316)

00304:      * @param string class name
00305:      * @return boolean whether the class has been loaded successfully
00306:      */
00307:    public static function autoload($className)
00308:    {
00309:        // use include so that the error PHP file may appear
00310:        if(isset(self::$_coreClasses[$className]))
00311:            include(YII_PATH.self::$_coreClasses[$className]);
00312:        else if(isset(self::$_classes[$className]))
00313:            include(self::$_classes[$className]);
00314:        else
00315:        {
00316: include($className.'.php');
00317:            return class_exists($className,false) || interface_exists($className,false);
00318:        }
00319:        return true;
00320:    }
00321:
00322:    /**
00323:      * Writes a trace message.
00324:      * This method will only log a message when the application is in debug mode.
00325:      * @param string message to be logged
00326:      * @param string category of the message
00327:      * @see log
00328:      */

Stack Trace

#0 /projetos/yii/yii-1.0.7/framework/YiiBase.php(316): autoload()
#1 unknown(0): autoload()
#2 /projetos/yii/teste/protected/components/UserMenu.php(2): spl_autoload_call()
#3 /projetos/yii/yii-1.0.7/framework/YiiBase.php(231): require()
#4 /projetos/yii/yii-1.0.7/framework/web/CBaseController.php(137): import()
#5 /projetos/yii/yii-1.0.7/framework/web/CBaseController.php(153): SiteController->createWidget()
#6 /projetos/yii/teste/protected/views/layouts/main.php(34): SiteController->widget()
#7 /projetos/yii/yii-1.0.7/framework/web/CBaseController.php(119): require()
#8 /projetos/yii/yii-1.0.7/framework/web/CBaseController.php(88): SiteController->renderInternal()
#9 /projetos/yii/yii-1.0.7/framework/web/CController.php(642): SiteController->renderFile()
#10 /projetos/yii/teste/protected/controllers/SiteController.php(28): SiteController->render()
#11 /projetos/yii/yii-1.0.7/framework/web/actions/CInlineAction.php(32): SiteController->actionIndex()
#12 /projetos/yii/yii-1.0.7/framework/web/CController.php(300): CInlineAction->run()
#13 /projetos/yii/yii-1.0.7/framework/web/CController.php(278): SiteController->runAction()
#14 /projetos/yii/yii-1.0.7/framework/web/CController.php(257): SiteController->runActionWithFilters()
#15 /projetos/yii/yii-1.0.7/framework/web/CWebApplication.php(332): SiteController->run()
#16 /projetos/yii/yii-1.0.7/framework/web/CWebApplication.php(120): CWebApplication->runController()
#17 /projetos/yii/yii-1.0.7/framework/base/CApplication.php(133): CWebApplication->processRequest()
#18 /projetos/yii/teste/index.php(11): CWebApplication->run()




0

#2 User is offline   Angéllica Cardozo 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 137
  • Joined: 11-March 09

Posted 10 September 2009 - 11:05 AM

Confirme se o diretório está correto
0

#3 User is offline   lsorgetz 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 17
  • Joined: 01-July 09

Posted 10 September 2009 - 11:42 AM

Submeti a mesma pergunta no Blog Tutorial e me responderam que alguém teria de reescrever o tutorial sobre Portlets, porque há uma série de problemas com a versão 1.0.7.

Desisti de usar esse tipo de menu, acabei usando a extensão (http://www.yiiframew...extension/menu/) que resolveu meu problema.


Valeu.
0

#4 User is offline   Angéllica Cardozo 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 137
  • Joined: 11-March 09

Posted 10 September 2009 - 12:06 PM

:S Hum entendi. Com o que tinha lá consegui desenvolver portlets com action create.

Enfim, acho que agora a documentação já foi corrigida
0

#5 User is offline   Daniel Augusto Bastos 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 347
  • Joined: 25-May 09
  • Location:Rio de Janeiro - Brasil

Posted 11 September 2009 - 02:58 PM

eu to usando este menu aqui:

http://users.tpg.com...gins/superfish/

To usando uma extensão beia-bomba que eu fiz aqui pra usar ele atualmente. Tinha feito direito pra publicar nas extensões do site .. mas meu HD queimou antes deu fazer um commit pro svn daqui e perdi as alterações que eu tinha feito. :(











Every solution creates a problem.
twitter.com/nenhumnick
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