What is MVC (model, view, and controller) in cakephp?
What is the name of Cakephp database configuration file name and its location?
What are component, helper and why are they used?
What are commonly used components of cakephp?
What is default function and default controller of cakephp which is called automatically?
How cakephp URL looks in address bar
Why cakephp have two vendor folder?
List some database related functions in cakephp.
List some of the features in Cakephp
Server requirements for CakePHP.
How to install CakePHP?
What is the first file that gets loaded when you run a application using cakephp?can you change that file?
What is the use of Security.salt and Security.cipherSeed in cakephp? How to change its default value?
What is the naming convention in cakephp?
What is Scaffolding in Cakephp?
How to add Scaffolding in your application?
What is a Behavior?
What are commonly used helpers of cakephp?
What is the difference between Component, Helper, Behavior?
What is a Element?
What is a layout?
How to set layout in the controller?
How to include helpers in controller ?
How to include components in controller ?
How to write, read and delete the Session in cakephp?
What is the use of $this->set();
What is the use of $this->set(compact());
What are the advantages of each?which would you use and why?
What is wrong with the below validation rule?
How to Get current URL in CakePHP?
Why cakephp have two vendor folder?what is the difference between two vendors folder available in cakephp?
What is the default extension of view files in cakephp?can we change it?if yes then how?
How can you set custom page title for the static page?
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
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?
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?
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
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