What is the component, helper and why are they used, is there other way we can do same thing, what is better?
Answer / Nakul Kumar
Component: It is a reusable PHP class that extends CComponent. Helper is a convenience function provided by Yii to perform specific tasks. They are used to reduce the repetitive code and enhance productivity. For the same functionality, you can use plain PHP classes or functions. However, using built-in components and helpers provided by Yii offers better performance, consistency, and less boilerplate code.
| Is This Answer Correct ? | 0 Yes | 0 No |
What about the naming convention in yii?
List out some database related functions in yii?
What's new in yii release 2.0?
What is cactiverecord in yii framework ?
Why yii is so fast?
How to get current action name?
How does a search() in searchmodel work in yii2?
What are the core components of yii2 framework?
Why gii is used?
What is the component, uses, how can we do and what is the better way?
Why use yii 2.0 framework?
What are the steps to install yii2?