I’ve noticed in my development with the Yii framework that there’s
a function for many basic HTML elements (CHtml has button, link, etc.)
as well as for a menu (that could easily be replaced with a list).
My question is it considered ideal to use widgets wherever I can ?
When should I use HTML ?
I’ve noticed in my development with the Yii framework that there’s a function for
Share
Sometimes, frameworks replace basic HTML with their own widgets.
In the case of a link widget, the framework might do additional stuff like automatically giving it
class="active"if the link is to the current page, so it can be styled differently.