Yii Framework Forum: XPortlet - Yii Framework Forum

Jump to content

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

XPortlet Rate Topic: -----

#1 User is online   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,875
  • Joined: 04-October 08
  • Location:DC, USA

Posted 25 November 2008 - 10:56 AM

Detailed information is at http://www.yiiframew...ension/portlet/

Please use this thread to report any bugs or suggestions. Thanks.
0

#2 User is offline   M Wotton 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 49
  • Joined: 01-November 09

Posted 22 November 2009 - 10:36 PM

When using the XPortlet extension, would it be applicable to put it in the components directory rather than the extensions directory? Correct me if I'm wrong, but wouldn't this make is possible to create classes extending XPortlet without explicitly importing the XPortlet class file?

I plan on building multiple portlets extending XPortlet, and in other documentation (specifically the blog tutorial), it seems that the portlets go in the components directory rather than extensions. I am just trying to clear up my own confusion.
Micha Wotton
Posted Image
0

#3 User is offline   M Wotton 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 49
  • Joined: 01-November 09

Posted 22 November 2009 - 11:59 PM

I have answered my own question. I have tried it and it works fine. This will make it easier when I go to write my own portlets (which will reside in the components directory), as the classes automatically load.
Micha Wotton
Posted Image
0

#4 User is offline   mbi 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 604
  • Joined: 08-May 09

Posted 23 November 2009 - 03:43 AM

another way is to load the extension directory in your config ;)
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