What is wrong with the widget description?
A. Widgets are object oriented to reuse view code
B. You still need to follow the MVC pattern when creating widgets. Usually the logic code is in the widget class and the display content is in the view.
C. The widget design should not be independent, that is, when using a widget, it cannot be directly discarded without additional processing.
D. When the widget needs external resources such as CSS, JavaScript images, etc., it will be more difficult and fortunate. Yii provides a resource pack to solve this problem.
Answer:C
What is wrong with the widget description?
A. Widgets are object oriented to reuse view code B. You still need to follow the MVC pattern when creating widgets. Usually the logic code is in the widget class and the display content is in the view. C. The widget design should not be independent, that is, when using a widget, it cannot be directly discarded without additional processing. D. When the widget needs external resources such as CSS, JavaScript images, etc., it will be more difficult and fortunate. Yii provides a resource pack to solve this problem.