YII Interview Questions and Answers
Most Frequently Asked YII Interview Questions
Yii is a component-based, high-performance PHP framework for developing extensive Web applications quickly. Yii enables maximum reusability in programming and significantly accelerates the process of web application development.
|Allow developers to create scalable and robust applications
|Full-stack PHP framework
|Fast and high-performance app development framework
|APIs enable easy integration with third-party apps
|Supports Object Relationship Mapping
|Utilizes Composer dependency manager to handle installations and dependencies
|Compatible with other front-end frameworks
|Robust and reliable for creating web apps.
|Fastest PHP framework
Reading our vast question bank will make it easy for you to crack the Yii basic interview questions.
Yii is not developed by a single individual. A strong team of core developers and an online community of professionals has been contributing to this framework's development.
In any Yii application, you need to open the main.php file in the
protected/config/main.php folder. Now search for the "DB" parameter. In this parameter, you can add the database name, hostname, username, and password for your database server.
Table prefix is defined using Gii by setting to tbl_. Once you set it, UserController will get generated instead of TblUserController.
The Yii Framework includes a class naming convention in which the names of classes map to the directories where they are stored. For your information, “framework/” directory is the root level directory of Yii that stores all classes hierarchically. Also, in Yii, the class names may contain only alphanumeric characters. Though numbers are allowed but are discouraged. You can use Dot (.) just in place of path separators.
In Yii, a component is an independent code written for a particular task which can be used by summoning controllers. An example of elements is an email component.