Cakephp Interview Questions And Answers

Cakephp Interview Questions list for experienced

  1. When CakePHP was developed?
  2. What is cakephp?.
  3. What are are drawbacks of cakephp.
  4. What is MVC (model, view, and controller) in cakephp?
  5. What is the name of Cakephp database configuration file name and its location?
  6. What are component, helper and why are they used?
  7. What are commonly used components of cakephp?
  8. What is default function and default controller of cakephp which is called automatically?
  9. How cakephp URL looks in address bar
  10. Why cakephp have two vendor folder?
  11. List some database related functions in cakephp.
  12. List some of the features in Cakephp
  13. Server requirements for CakePHP.
  14. How to install CakePHP?
  15. What is the first file that gets loaded when you run a application using cakephp?can you change that file?
  16. What is the use of Security.salt and Security.cipherSeed in cakephp? How to change its default value?
  17. What is the naming convention in cakephp?
  18. What is Scaffolding in Cakephp?
  19. How to add Scaffolding in your application?
  20. What is a Behavior?
  21. What are commonly used helpers of cakephp?
  22. What is the difference between Component, Helper, Behavior?
  23. What is a Element?
  24. What is a layout?
  25. How to set layout in the controller?
  26. How to include helpers in controller ?
  27. How to include components in controller ?
  28. How to write, read and delete the Session in cakephp?
  29. What is the use of $this->set();
  30. What is the use of $this->set(compact());
  31. What are the advantages of each?which would you use and why?
  32. What is wrong with the below validation rule?
  33. How to Get current URL in CakePHP?
  34. Why cakephp have two vendor folder?what is the difference between two vendors folder available in cakephp?
  35. What is the default extension of view files in cakephp?can we change it?if yes then how?
  36. How can you set custom page title for the static page?
  37. How to display the schema of the model?

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

Top Cakephp interview questions and answers for freshers and experienced

What is Cakephp ?

Answer : CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. It uses commonly known design patterns like MVC and ORM within the convention over configuration paradigm.

Questions : 1 :: When CakePHP was developed?

Cake PHP started in April 2005.When a Polish programmer Michal Tatarynowicz wrote a minimal version of a Rapid Application Framework in PHP, dubbing it Cake.Cake PHP version 1.0...View answers

Questions : 2 :: What is cakephp?.

CakePHP  is a free, open-source, rapid development framework for PHP. It's a foundational structure for programmers to create web applications. There is...View answers

Questions : 3 :: What are are drawbacks of cakephp.


The learning curve, and it loads full application before it starts your task. Its not recommended for small projects because of its resource heavy...View answers

Questions : 4 :: What is MVC (model, view, and controller) in cakephp?

Model–view–controller (MVC) is an architectural pattern used in software engineering. Model: Databases function exist in the model View: Design...View answers

Questions : 5 :: What is the name of Cakephp database configuration file name and its location?

Default file name is database.php.default. Its located in...View answers

Questions : 6 :: What are component, helper and why are they used?


A component is an independent piece of code written for specific task that can be used(Eg Email, Ajax, RequestHandler and Session). A helper is used for...View answers

Questions : 7 :: What are commonly used components of cakephp?

Following are some components which is used in cakephp.   Security Sessions ACL(Access control...View answers

Questions : 8 :: What is default function and default controller of cakephp which is called automatically?

Default controller is indexController.php and Default function...View answers

Questions : 9 :: How cakephp URL looks in address bar


...View answers

Questions : 10 :: Why cakephp have two vendor folder?

There is two vendor folder, one folder in root and another is in "app"...View answers

Questions : 11 :: List some database related functions in cakephp.

 find, findAll , findAllBy , findBy , findNeighbours and...View answers

Questions : 12 :: List some of the features in Cakephp

Following are some feature of Cakephp. *Full support of (MVC)Model, View, Controller Architecture.*Scaffolding.*Very nice Code generation via Bake.*Helpers...View answers

Questions : 13 :: Server requirements for CakePHP.

Here are the requirements for setting up a server to run CakePHP: An HTTP server (like Apache) with the following enabled: sessions, mod_rewrite (not absolutely necessary but...View answers

Questions : 14 :: How to install CakePHP?

step1: Go to cakephp.org and download the latest version of cakephp. step2: Cakephp comes in a .zip file,so unzip it. step3: Extract the files in the localhost in the...View answers

Questions : 15 :: What is the first file that gets loaded when you run a application using cakephp?can you change that file?

bootstrap.php yes it can be changed.Either through index.php , or through...View answers

Questions : 16 :: What is the use of Security.salt and Security.cipherSeed in cakephp? How to change its default value?

-The Security.salt is used for generating hashes.we can change the default Security.salt value in /app/Config/core.php. - The Security.cipherseed is used for encrypt/decrypt...View answers

Questions : 17 :: What is the naming convention in cakephp?

Table names are plural and lowercased,model names are singular and CamelCased: ModelName, model filenames are singular and underscored: model_name.php, controller names are...View answers

Questions : 18 :: What is Scaffolding in Cakephp?

Scaffolding is a technique that allows a developer to define and create a basic application that can create, retrieve, update and delete...View answers

Questions : 19 :: How to add Scaffolding in your application?

To add scaffolding to your application,just add the $scaffold variable in the controller, <?php class PostsController extends AppController {     var...View answers

Questions : 20 :: What is a Behavior?

Behaviors in CakePHP are associated with Models. Behaviors are used to change the way models behaves and enforcing model to act as something...View answers

Questions : 21 :: What are commonly used helpers of cakephp?

FormHelperHtmlHelperJsHelperCacheHelperNumberHelperPaginatorRSSSessionHelperTextHelperTimeHelper

Questions : 22 :: What is the difference between Component, Helper, Behavior?

Component is a Controller extension, Helpers are View extensions, Behavior is a Model...View answers

Questions : 23 :: What is a Element?

element in cakephp are smaller and reusable bits of view code. Elements are usually rendered inside...View answers

Questions : 24 :: What is a layout?

Layout in cakephp are used to display the views that contain presentational code. In simple views are rendered inside a...View answers

Questions : 25 :: How to set layout in the controller?

var $layout = ‘layout_name’; to overwrite for a specific action use below code in that action $this->layout...View answers

Questions : 26 :: How to include helpers in controller ?

public $helpers = array(‘Form’, ‘Html’, ‘Js’, ‘Time’); to in specific action use below code in that action $this->helper[]...View answers

Questions : 27 :: How to include components in controller ?

public $components = array(‘Emails’, ‘ImageUploader’,...View answers

Questions : 28 :: How to write, read and delete the Session in cakephp?

$this->Session->write(‘Bird.Color’, ‘Black’); $black =...View answers

Questions : 29 :: What is the use of $this->set();

The set() method is used for creating a variable in the view file.Say for example if we write, $this->set('posts',$posts); in controller fie, then the variable $posts will...View answers

Questions : 30 :: What is the use of $this->set(compact());

Using $this->set(compact()) , we can pass multiple parameters to access into the view file. For example, $this->set(compact('posts','users','reports')); Now all...View answers

Questions : 31 :: What are the advantages of each?which would you use and why?

An advantage with first case $this->set('posts', $posts); is that it allows two different names for the view file and controller file. For example, you could write...View answers

Questions : 32 :: What is wrong with the below validation rule?

'email' => array(     'rule' => array(         'rule' => 'notEmpty',         'message' => 'Please...View answers

Questions : 33 :: How to Get current URL in CakePHP?

To get current url in cakephp use,    echo Router::url($this->here, true);   This will give full URL with hostname.If you want to get relative path instead...View answers

Questions : 34 :: Why cakephp have two vendor folder?what is the difference between two vendors folder available in cakephp?

There will be two vendor folders available in cakephp frame work. one in ” app ” folder and one in root folder   The vendor folder in the app folder is used...View answers

Questions : 35 :: What is the default extension of view files in cakephp?can we change it?if yes then how?

default extension of view files is '.ctp'. yes we can change it by writing public $ext = '.yourext'; in AppController.If you want to change it for particular controller...View answers

Questions : 36 :: How can you set custom page title for the static page?

To set a custom page title, copy-paste following code anywhere in your static page (.ctp) file: $this->set("title_for_layout", "My page...View answers

Questions : 37 :: How to display the schema of the model?

If you want to disply the schema of particular model then you just need to add the following single line of code.For example we have “Posts”...View answers
More Question

Ask your interview questions on Cakephp

Write Your comment or Questions if you want the answers on Cakephp from Cakephp 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 ---