Yii Interview Questions And Answers

Yii Interview Questions list for experienced

  1. What is Yii Framework?
  2. What Yii is so FAST?
  3. Can you Remember what is directory structure when you downloaded Yii?
  4. What is the first file that gets loaded when you run a application using Yii?
  5. What is model,view,controller?
  6. What is the naming convention inYii?
  7. What is the component,helper and why are they used,is there other way we can do same thing,what is better?
  8. How do you proceed when you have to use Yii for any application?
  9. What is the first function that gets loaded from a controller?
  10. what is habtm?
  11. How can we use ajax in Yii?
  12. If you have to validate a registrations module for a user, what all can be possible ways, which one is the best?
  13. can you list some database related functions in Yii?
  14. How can you include a javascript menu throught the site? Give Steps
  15. What is meant by Yii Framework?
  16. Why do Yii run so FAST?
  17. What about the naming convention in Yii?
  18. What is the component, uses, how can we do and what is the better way?
  19. How do you continue when you have to use Yii for any application?
  20. How to use ajax in Yii?
  21. List out some database related functions in Yii?
  22. How to include a javascript menu through a site?
  23. Who was the developer of the Yii and when was it build?
  24. What are the requirements of the Yii?
  25. How does Yii Compare with Other Frameworks?
  26. how do we extend Yii?
  27. How to connect to the database?
  28. How to generate CRUD code?
  29. How to set default controller on Yii Project ?
  30. What are the core application components available on Yii?
  31. Application Life Cycle of Yii framework ?
  32. How to get current controller id in Yii ?
  33. How to get current action id in Yii ?
  34. What is filter on Yii framework ?
  35. What are the type of models available in Yii framework ?
  36. What is CFormModel in Yii framework ?
  37. What is CActiveRecord in Yii framework ?

Yii interview questions and answers on advance and basic Yii with example so this page for both freshers and experienced condidate. Fill the form below we will send the all interview questions on Yii also add your Questions if any you have to ask and for apply in Yii Tutorials and Training course just send a mail on info@pcds.co.in in detail about your self.

Top Yii interview questions and answers for freshers and experienced

What is Yii ?

Answer : Yii is a high-performance, MVC architecture based, open source PHP framework best for developing Web 2.0 applications. This tag is a general tag used for both Yii and Yii

Questions : 1 :: What is Yii Framework?

Yii is a high-performance component-based PHP framework best for Web 2.0...View answers

Questions : 2 :: What Yii is so FAST?

Yii is so much faster because it is using the lazy loading technique extensively. For example, it does not include a class file until the class is used for the first time; and it does not create an...View answers

Questions : 3 :: Can you Remember what is directory structure when you downloaded Yii?


backend/     common/         components/        ...View answers

Questions : 4 :: What is the first file that gets loaded when you run a application using Yii?

index.php

Questions : 5 :: What is model,view,controller?

Models represent the underlying data structure of a Web application. Models are often shared among different sub-applications of a Web application. For example, a LoginForm model may...View answers

Questions : 6 :: What is the naming convention inYii?


You can define table prefix when using Gii. In your case you need to set it to tbl_. Then it should  generate UserController instead of TblUserController. => The Yii...View answers

Questions : 7 :: What is the component,helper and why are they used,is there other way we can do same thing,what is better?

=> A component is an independent piece of code written for specific task that can be used by calling in controllers (example : email component), helper is used for helping yii in rendering the...View answers

Questions : 8 :: How do you proceed when you have to use Yii for any application?

take the framework either from Yii site or if you have changed according to your needs start from there. Proceed with basic software engg. concepts as requirement gathering etc..   This is a...View answers

Questions : 9 :: What is the first function that gets loaded from a controller?


index

Questions : 10 :: what is habtm?

HasAndBelongsToMany =>has and belongs to many is a kind of associations that can be defined in models for retrieving associated data across different entities.

Questions : 11 :: How can we use ajax in Yii?

by calling ajax helper and then using it in controller for rendering.

Questions : 12 :: If you have to validate a registrations module for a user, what all can be possible ways, which one is the best?

can be done on submission in controller, or using javascript/ajax while user is still filling the data. Second option is better.

Questions : 13 :: can you list some database related functions in Yii?

find, findAll , findByPk , find By ,query

Questions : 14 :: How can you include a javascript menu throught the site? Give Steps

By adding the javascript files in webroot and call them in default views if needed everywhere or just in the related views.

Questions : 15 :: What is meant by Yii Framework?

Yii is an open source and highly performed component-based PHP framework used for Web application development. This application was started on January and completed in December...View answers

Questions : 16 :: Why do Yii run so FAST?

Yii is so much faster because it is using the lazy loading technique extensively. For example, it does not include a class file until the class is used for the first time; and it does not create an...View answers

Questions : 17 :: What about the naming convention in Yii?

We define table prefix while using Gii. In your case you need to set it to tbl_. Then it should generate UserController instead of TblUserController. – The Yii Framework employees a class...View answers

Questions : 18 :: What is the component, uses, how can we do and what is the better way?

A component is a piece of code written for specific task is used by calling controllers, helper is used for helping Yii in rendering the data to be shown to user with views, these adds to modularity...View answers

Questions : 19 :: How do you continue when you have to use Yii for any application?

. If you have changed according to your needs… Proceed with basic software engg. concepts as requirement gathering etc. This is the basic Understanding Concept in Yii. – Yii based apps...View answers

Questions : 20 :: How to use ajax in Yii?

We use by calling ajax helper, then using it in controller for rendering.

Questions : 21 :: List out some database related functions in Yii?

Query find, findAll , findByPk , find By

Questions : 22 :: How to include a javascript menu through a site?

We can include by adding the javascript files in webroot and then call them in default views if they are needed everywhere or in the related views

Questions : 23 :: Who was the developer of the Yii and when was it build?

The developer of the Yii is Yii Software LLC. It was started in the year 2008 in December 3, with the version of 1.0 and continued to 1.1.13. in PHP language.

Questions : 24 :: What are the requirements of the Yii?

To run a Yii Web application, we need a Web server which supports PHP 5.1.0. Version. The developers who want to use Yii, should understand the object-oriented programming (OOP) which is very...View answers

Questions : 25 :: How does Yii Compare with Other Frameworks?

Comparatively to most of PHP frameworks, Yii is a MVC framework. Yii bests PHP frameworks for its efficient, feature-rich and clearly-documented. Yii is designed to be fit for serious Web application...View answers

Questions : 26 :: how do we extend Yii?

Extending Yii is a common action during web development. Like when we write a new controller, we extend Yii by inheriting its CController class; when we write a new widget, we will extend CWidget or...View answers

Questions : 27 :: How to connect to the database?

Most of the web applications are assisted by databases. test-drive application is not an exception. For database, we need to see the application where and how to connect it. This is done through the...View answers

Questions : 28 :: How to generate CRUD code?

After creating a model class file, we shall generate the code that implements the CRUD operations for user data. We choose the Crud Generator in Gii. In the model class field, we enter...View answers

Questions : 29 :: How to set default controller on Yii Project ?

We can set on configuration file (protected/config/main.php). array( 'name'=>'Yii Framework', 'defaultController'=>'site', )

Questions : 30 :: What are the core application components available on Yii?

Yii predefines a set of core application components to provide features common among Web applications. For example, the request component is used to collect information about a user request and...View answers

Questions : 31 :: Application Life Cycle of Yii framework ?

When handling a user request, an application will undergo the following life cycle: 1. Pre-initialize the application with CApplication::preinit(); 2. Set up the class autoloader and error handling;...View answers

Questions : 32 :: How to get current controller id in Yii ?

$controllerid = Yii::app()->controller->id;

Questions : 33 :: How to get current action id in Yii ?

$actionid = Yii::app()->controller->action->id;

Questions : 34 :: What is filter on Yii framework ?

Filter is a piece of code that is configured to be executed before and/or after a controller action executes. For example, an access control filter may be executed to ensure that the user is...View answers

Questions : 35 :: What are the type of models available in Yii framework ?

Yii implements two kinds of models: Form models and active records. They both extend from the same base class,CModel.

Questions : 36 :: What is CFormModel in Yii framework ?

A form model is an instance of CFormModel. Form models are used to store data collected from user input. Such data is often collected, used and then discarded. For example, on a login page, we can...View answers

Questions : 37 :: What is CActiveRecord in Yii framework ?

Active Record (AR) is a design pattern used to abstract database access in an object-oriented fashion. Each AR object is an instance of CActiveRecord or of a subclass of that class, representing a...View answers
More Question

Ask your interview questions on Yii

Write Your comment or Questions if you want the answers on Yii from Yii Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---