Yii Framework Forum: Difference between portlet, widget and component - Yii Framework Forum

Jump to content

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

Difference between portlet, widget and component Rate Topic: ***** 1 Votes

#1 User is offline   GDzyne 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 38
  • Joined: 15-June 09

Posted 18 February 2010 - 05:11 AM

Hi Guys,

I know this question has been asked before because when searching the site I see the forum thread but clicking on it takes me to the forum home page...

Anyways, what is the difference between a portlet, widget and component? When should I use either one of them because to me they all fulfil the same purpose?

Thanks...
0

#2 User is offline   GDzyne 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 38
  • Joined: 15-June 09

Posted 18 February 2010 - 08:32 AM

Thanks for your reply mbi.
0

#3 User is offline   zaccaria 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 2,232
  • Joined: 04-October 09
  • Location:Moscow

Posted 19 August 2010 - 09:15 AM

For create a part of site used in many places (like user information, for example), create a widget.

I have never created portlet, I use only CPortlet for the operation menu. (the one that there is in the layouts/column2)
0

#4 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,013
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 20 August 2010 - 01:11 AM

Uhm, a portlet is a widget. Only a more specific one that renders as a box with title + content. That's all.
0

#5 User is offline   Boaz 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 360
  • Joined: 23-January 11

Posted 03 May 2012 - 06:28 AM

View PostMike, on 20 August 2010 - 01:11 AM, said:

Uhm, a portlet is a widget. Only a more specific one that renders as a box with title + content. That's all.


Adding something to this old thread: if I got it right then might use a portlet if he has several different such portlets and he / she wants to unify the look and feel of those boxes, especially with regard to the wrapping of those boxes - borders, title look&feel, spacing, etc.
Therapeutic PHP sessions My LinkedIn Profile
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