Q. What Is CakePHP?

Ans:
CakePHP is a open-source free, rapid web development framework of PHP. It’s a based on ORM model and use of CakePHP you can develop all types of websites such as-Portal,E-commerce,CRM,Blog etc.
If want going to start CakePHP you should know about Array, Object and OPPs Conceps then you will learn easily and develop a website.

Q. What Is CakePHP Latest Version?

Ans:
New CakePHP Version 3.6 Red Velvet now available (Faster. Stronger. Tastier).

Q. What Is The Folder Structure Of CakePHP?

Ans :

  • Bin
  • plugin
  • src
    • Controller
    • Local
    • Models
    • Shell
    • View
    • Template
  • tests
  • tmp
  • logs
  • webrrot
  • vendor

Q. Which file load first when CAKEPHP project execute.

Ans:

bootstrap.php

Q. Which Function Is Executed first Before Every Action In The Controller?

Ans:

function beforeFilter()

Q. What is CakePHP Conventions?

Ans. If you create a file named UsersController.php then controller class should be UsersController.

Q. How to use CakePHP Router?

Ans.

use Cake\Routing\Router;

// Using a scoped route builder.
Router::scope(‘/’, function ($routes) {
$routes->connect(‘/’, [‘controller’ => ‘Users’, ‘action’ => ‘index’]);
});

// Using the static method.
Router::connect(‘/’, [‘controller’ => ‘Users’, ‘action’ => ‘index’]);

Q. What is Cakephp Features?

Ans:

  • Compatible with versions PHP 5 above.
  • Access Control Lists and Authentication.
  • MVC architecture
  • Built-in validations
  • Caching
  • Scaffolding
  • Access Control Lists and Authentication.
  • CSRF protection via Security Component.

 

News Reporter
IT Software and web development, Core PHP, JavaScript, JQuery, HTML, CSS, CakePHP, Angularjs, Codeigniter etc.

2 thoughts on “CakePHP Interview Questions and Answers

  1. Hello. Very interesting content but it’s hard to find swcodes.com in search results.
    You are out of google’s top 10, so you can’t expect big
    traffic. You need high quality backlinks to rank in serps. And you can get them for free, just
    search in google: fasrixo’s tools

Leave a Reply

Your email address will not be published.

error: