InterviewSolution
| 1. |
What Is The Component,helper And Why Are They Used,is There Other Way We Can Do Same Thing,what Is Better? |
|
Answer» A component is an INDEPENDENT piece of code WRITTEN for specific TASK that can be used by calling in controllers (example : email component), helper is used for HELPING yii in rendering the data to be shown to user with views, these only adds to MODULARITY in code otherwise same coding can be implemented in controllers. A component is an independent piece of code written for specific task that can be used by calling in controllers (example : email component), helper is used for helping yii in rendering the data to be shown to user with views, these only adds to modularity in code otherwise same coding can be implemented in controllers. |
|