Thursday, August 20, 2015

CakePHP Interview Questions and Answers for Experienced basic advanced 2015-2016

CakePHP Interview Questions and Answers for Experienced basic advanced 2015-2016,CakePHP Interview Questions and Answers 2015,Top 20 CakePHP Interview Questions,CakePHP Interview Questions & Answers,CakePHP Interview Questions and Answers For Freshers and Experienced, CakePHP Frequently Asked Interview Questions,Freshers Latest CakePHP Technical Interview Questions & Answers,F2F Interview,CakePHP, Interview Questions & Answers,What would be some common CakePHP interview questions,CakePHP interview questions and answers for 2 years,CakePHP Developer Interview Questions,10 Common face to face CakePHP interview questions and answers,CakePHP Interview Questions and Answers,Top 10 CakePHP Interview Questions and Answers 2015,CakePHP (CMS)Interview Question Answer,Technical CakePHP Interview Questions and Answers for getting Job,Where can I find good CakePHP interview questions,CakePHP job interview questions and answers for freshers,CakePHP interview questions and answers for experienced,10 Tough CakePHP Interview Questions With Smart Answers,CakePHP interview questions and answers for experienced,How to Answer CakePHP Interview Questions,Where can I find good CakePHP interview questions ,Download CakePHP Interview Questions.

What is  cakephp?.

CakephpCakePHP  is a free, open-source, rapid development framework for PHP. It's a foundational structure for programmers to create web applications. There is number of in built component like Ajax, RequestHandler, Session etc

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 structure.

When CakePHP Was Developed?

CakePHP started in April 2005.When a Polish programmer Michal Tatarynowicz wrote a minimal version of a Rapid Application Framework in PHP, dubbing it Cake.CakePHP version 1.0 released in May 2006.  (source:http://en.wikipedia.org/wiki/CakePHP)


What Is The Current Stable Version Of CakePHP?

3.0 (on date 2015-06-12).


What Is MVC In CakePHP?

Model view controller (MVC) is an architectural pattern used in software engineering.

Model      : Database functions exist in the model
View        : Design parts written here
Controller : Business Logic goes here

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

Default file name is database.php.default.
Its located in "/app/config/database.php.defaut"


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 helping cakephp in rendering the data to be shown to user with views(Eg Form, HTML etc).

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 preferred)

PHP 4.3.2 or greater. Yes, CakePHP works great in either PHP 4 or 5.
A database engine (right now, there is support for MySQL 4+, PostgreSQL and a wrapper for ADODB).


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 desired folder (for example:cakephp).
step4: Open the browser and run the URL localhost/cakephp
step5: Just Follow the instructions display on the page.

What are commonly used components of cakephp?

Following are some components which is used in cakephp.

Security
Auth(Authentication)
MVC architecture
Built-in validations
Caching
scaffolding
Emails
Sessions
ACL(Access control lists)
Cookies
RequestHandling


What is HABTM.

Full form of Has And Belongs To Many.

It is a kind of associations that can be defined in models for retrieving associated data across different entities.

What Is The Name Of Cakephp Database Configuration File Name And Its Location?

Default file name is database.php.default.
Its located at "/app/config/database.php.default".To connect with database it should be renamed to database.php


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 .htaccess

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 strings.We can change the default Security.cipherSeed value by editing /app/Config/core.php.


What Is Default Function For A Controller?

index() function


Which Function Is Executed Before Every Action In The Controller?

function beforeFilter()

What Are Controllers?

A controller is used to manage the logic for a part of your application. Most commonly, controllers are used to manage the logic for a single model. Controllers can include any number of methods which are usually referred to as actions. Actions are controller methods used to display views. An action is a single method of a controller.


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

Default controller is indexController.php and Default function is index.


How cakephp URL looks in address bar

http://example.com/controller/action/param1/param2/param3


Why cakephp have two vendor folder?

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

0 comments:

Post a Comment