Top 10 Yii Interview Questions and Answers for fresher
Today, We want to share with you Top 10 Yii Interview Questions and Answers for fresher.
In this post we will show you YII interview questions and answers for fresher, hear for Yii Interview Questions and Answers we will give you demo and example for implement.
In this post, we will learn about Top 10 YII Interview Questions & Answers with an example.
What is Yii?
Yii framework is a one type of the PHP framework which is based on pure MVC basic structure(Model View Controller).
What is current stable version of Yii?
Latest Version of yii framework in php is : 2.0.7 dated February 14, 2016.
Application Life Cycle of Yii framework ?
- phase 1 : Pre-initialize the application with CApplication::preinit();
- phase 2 : Set up the simple class autoloader and error handling;
- phase 3 : Register core seimpl web-application components;
- phase 4 : Load application easy setup configuration;
- phase 5 : Initialize the web-application with CApplication::init() base
• Register web-application behaviors;
• Load static new application components;
- phase 6 : Raise an onBeginRequest event;
- phase 7 : Process the user request:
• Collect information about the request;
• new Create a new controller;
• Run the simple controller;
- phase 8 : Raise an onEndRequest generate event;
How to get current controller id in Yii ?
$controllerid = Yii::app()->controller->id;
How to get current action id in Yii ?
$actionid = Yii::app()->controller->action->id;
What are the type of models available in Yii framework ?
Form models and
List out some database related functions in Yii?
- find By
What is the first file that gets loaded when you run a application using Yii framework?
How can we use ajax in Yii?
By the calling ajax helper model routing and then using it in controller to data routing for rendering.
what is directory structure for Yii framework?
Recommended For You.
Today, We want to share with you Laravel Send Mailgun Mail using PHP cURL.In this post we will show you