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?
Page 1 of 1
Widgets Or Partial Views?
#2
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.
Share this topic:
Page 1 of 1

Help












