Yii Framework Forum: Widgets Or Partial Views? - Yii Framework Forum

Jump to content

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

Widgets Or Partial Views? Rate Topic: -----

#1 User is offline   Callum Rexter 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 30
  • Joined: 21-January 12
  • Location:Scotland

Posted 13 October 2012 - 07:40 AM

So I am fairly new to Yii and reading various books and guides has led me to a question. If I want to reuse some code, whether it is complex or simple, that I can do so using widgets or partial views.

I am wondering if I have missed something, should these be used for different features or is there an overlap in functionality, why have both?
$DO || ! $DO ; try
try: command not found
0

#2 User is offline   alirz23 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 830
  • Joined: 08-August 12
  • Location:Durban, South Africa

Posted 14 October 2012 - 01:30 AM

Ok I am not Yii expert dont know what the exact diff is but have few years of experience I make use widgets, inside the widgets I do use render partial if i need it in more than one widget somewhat similar to CGridList, one more thing renderPartial is used for ajax extensively.
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