What is cakephp?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,ORM within the convention over configuration paradigm, It also reduces development costs and helps developers write less code.
Why cakephp, and why not any other framework?It has been for years in the market with strong support in the form of communities and online documentation, it supports php 4/5 , sometimes it becomes mandatory to support php4 because of client's limitation in support php5, there cakephp helps.
What is meant by MVC?model view controller, it is a software architecture, used to isolates business logic from presentation logic. cakephp is based on mvc pattern.
What are 3 important parts of MVC?
- The Model represents the application data
- The View renders a presentation of model data
- The Controller handles and routes requests made by the client
Can you remember what is the directory structure when you download cakephp?* app/
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
List some of the features in Cake php
- Compatible with versions 4 and 5 of PHP
- MVC architecture
- Built-in validations
for connecting to database, it should be renamed to database.php
What is a Component in cakephp?Components are packages of logic that are shared between controllers. They are useful when a common logic or code is required between different controllers.
What are commonly used components of cakephp?
* Access control lists
* Request handling
Using cakephp, what all are drawbacks?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.
What is a component,helper and why are they used, is there other way we can do same thing, what is better.A component is an independent piece of code written for specific task that can be used by calling in controllers (example : email component),
helper is used for helping cakephp in rendering the data to be shown to user with views, these only adds to modularity in code otherwise same coding can be implemented in controllers.
What is the first function that gets loaded from a controller.
Can you list some database related functions in cakephp?
find, findAll , findAllBy , findBy , findNeighbours , query