Yii is a high-performance, open-source PHP framework renowned for its efficiency and versatility in web application development. Launched in 2008, Yii (pronounced "yee") has gained a strong following among developers worldwide. It boasts a robust set of features, including a powerful extension system, seamless integration of third-party libraries, and comprehensive tools for handling security and scalability. With its emphasis on clean, maintainable code and rapid development, Yii is an excellent choice for building web applications of varying complexities, from simple websites to intricate enterprise solutions.
111. Which authentication method in Yii involves verifying user credentials using a username and password?
Answer:HTTP Basic Authentication
112. In Yii, what is the primary role of RBAC (Role-Based Access Control) in authorization?
Answer:Assigning roles to users
113. Which Yii component is used for managing user sessions and storing user authentication status?
114. In Yii's RBAC, what is a role typically associated with?
Answer:Permissions and access rules
115. What does the accessControl filter in Yii allow you to do?
Answer:Define access rules for controller actions
116. In Yii, what is the purpose of the authManager component?
Answer:Managing RBAC permissions and roles
117. Which Yii extension is commonly used for implementing OAuth 2.0 authentication in RESTful applications?
118. What is the purpose of JWT (JSON Web Tokens) in Yii's authentication system?
Answer:Securely transmitting authentication data
119. How can you restrict access to a specific action in a Yii controller to authenticated users only?
Answer:Using the accessControl filter
120. What is Yii's default behavior when an unhandled exception occurs in a RESTful API request?
Answer:Displaying a detailed error message
Yii Interview questions and answers Yii MCQ Yii Framework MCQ Practice Test Yii Interview questions and answers PDF