What is the component, uses, how can we do and what is the better way?
Answer / Ashish Kumar Mishra
DB Component: It is used for handling database operations. To perform database operations, first, instantiate the CDbConnection class, which extends CComponent, and then use it to access various methods like createCommand(), execute(), or query(). The best practice is to use Yii's Active Record patterns (ActiveRecord or DataReader) instead of directly using DB component for a cleaner, more efficient, and easier-to-maintain code.
| Is This Answer Correct ? | 0 Yes | 0 No |
If you have to validate a registrations module for a user, what all can be possible ways, which one is the best?
How can you include a javascript menu throught the site? Give steps
What are the steps to install yii 2.0 framework?
What is required properties in yii application? Why?
What is the latest version of yii?
Explain the yii versions?
What are components in yii 2.0 framework?
What is active record (ar) in yii framework?
What is yii framework?
What is the difference between render() and renderpartial() in yii ?
What are yii helpers?
What are the advantages of yii2?