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?