Cake PHP

Cake PHP

CakePHP is an open-source web framework. It follows the model–view–controller (MVC) approach and is written in PHP, modeled. CakePHP uses well-known software engineering concepts and software design patterns, such as convention over configuration, model–view–controller, active record, association data mapping, and front controller.



Top 100 CakePHP interview questions and answers

Mycodekills has free programming tests online. Students can participate in cake PHP online test and get free certificate. Beginners as well as experts can check their cake PHP skills with the cake PHP quiz. This test can also help fresh graduates to pass the cake PHP interview.


 

Mujtaba Sohail

Mujtaba Sohail

Beginner 10%

Dan Seaman

Dan Seaman

Beginner 0%

Nouman Ahmad

Nouman Ahmad

Beginner 20%

Dawood farman

Dawood farman

Advanced 0%

Dawood farman

Dawood farman

Intermediate 0%

Dawood farman

Dawood farman 👍

Beginner 60%

Aye Mon

Aye Mon

Advanced 20%

Umer Nazeer

Umer Nazeer 👍

Beginner 70%


Questions

  1. What is the first file that gets loaded when you run an application using a cakephp?
  2. The view layer in CakePHP can be made up of a number of different parts. What are the deferent part of view layer?
  3. Which of email transports can be used in CakeEmail?
  4. Which function is executed before every action in the controller?
  5. List some features of CakePHP framework?
  6. Which by is not a core find type provided by CakePHP?
  7. Which of the following function will be called before any action get executed?
  8. What are commonly used components of Cakephp?
  9. What are commonly used helpers of Cakephp?
  10. CSRF protection is provided in CakePHP 2.x in
  11. A copy of CakePHP's database configuration file is found in
  12. To work with database in the latest version of cakephp, ________________ must be enabled in your php.ini file.
  13. To change the default value of security salt, you have to work with the core.php file located in
  14. The ______________ seed is used for encrypt/decrypt strings.
  15. The _____________ is the bread and butter of CakePHP applications.
  16. CakePHP's model class files located in
  17. CakePhp works with convention over configuration.
  18. By naming your model Post, cakephp will automatically infer that this model will work with controller named:
  19. The model named Post will tied to a database table named ___________ automatically.
  20. _____________ often represent a single function or interface in an application.
  21. The single instruction in the action uses ___________ to pass data from the controller to the view.
  22. Cake's view files are stored in /app/View inside a folder named after the controller they correspond to. So for controller named PostController the view folder location will be:
  23. In cakephp, the view/template file extension is:
  24. $this->Html is the instance of cakephp's _____________ class.
  25. Every CakePHP request includes a CakeRequest object which is accessible using $this->request.
  26. When a user uses a form to POST data to your application, that information is available in:
  27. We use the SessionComponent's SessionComponent::______________ method to set a message to a session variable to be displayed on the page after redirection.
  28. To take advantage of the validation features in cakephp, you'll need to use Cake's FormHelper in your:
  29. How to create a form in cakephp?
  30. in cakephp validation rules are defined in:
  31. Cake's routing is found in:
  32. Controller classnames are ________, CamelCased, and end in Controller.
  33. In general, filenames match the classnames, which are:
  34. Model classnames are ___________ and CamelCased.
  35. CakePHP does not support composite primary keys.
  36. The getReady() function of the PeopleController class will look for a view template in:
  37. The _________ folder is where you'll place third-party PHP libraries you need to use with your CakePHP applications.
  38. A _____________ is a class that aids in controller logic.
  39. __________ are an abstraction that enable models to manipulate different types of data consistently.
  40. Actions are methods on a ____________ that handle requests.
  41. The __________ class is the parent class to all of your application's controllers.
  42. In cakePhp, The conventional view file name is the lower cased and underscored version of the ___________ name.
  43. The set() method is the main way to send data from your controller to your ___________.
  44. The render() method is automatically called at the end of each requested controller ___________.
  45. Which CakePHP entities can the Bake console create?
  46. How does one add scaffolding to an application?
  47. Which is not a core find type provided by CakePHP?
  48. Is it possible to define custom data retrieval methods and if so, where would you define them?
  49. What CakePHP component is not part of the View layer?
  50. In which controller callback would you preferably set “Auth->loginAction”?
  51. In cakePHP 2.x , the recursive property defines:
  52. How will you include an element (header/footer etc.) within a layout?
  53. Which of the following is an example of a model definition in CakePHP?
  54. What is the name of Cake's database configuration file?
  55. True or False? Scaffolding in CakePHP also allows developers to define how objects are related to each other, and to create and break those links
  56. True or False? CakePHP will dynamically create a model object for you if it cannot find a corresponding file in /app/Model.
  57. The association types in CakePHP are

Related Articles

Resources

Top 10 C Programming Interview Questions and Answers: Easiest Guide for Job Seekers (2023)
Top 10 C Programming Interview Questions and Answers: Easiest Guide for Job Seekers (2023)

Are you a job seeker preparing for a C programming interview? Congratulations on taking the first st...

The Impact of Artificial Intelligence on Society
The Impact of Artificial Intelligence on Society

Artificial intelligence (AI) is a rapidly developing technology that is having a major impact on so...

How to create images with AI?
How to create images with AI?

what is ai art and how to create? What is AI Art? Artificial Intelligence Art (AI art) is a form of ...

Humans in an Age of AI: What Should We Do?
Humans in an Age of AI: What Should We Do?

Artificial intelligence (AI), also known as machine learning, is the capacity of machines to learn a...

What is Scratch Programming Language?
What is Scratch Programming Language?

Scratch is an easy-to-use visual programming language that lets you create interactive stories and g...

The Ethics of Programming
The Ethics of Programming

Programming is a powerful tool that can be used for good or for bad. As programmers, we have a respo...

AdBlock Detected!

Our website is providing free tools to our users there is nothing
that you pay for. We only display advertisement ads. So Please
don’t use adBlocker, Keep visiting us thanks.