CakePHP PHP Questions & 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,ORM within the convention over configuration paradigm, It also reduces development costs and helps developers write less code.
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 PHP 4 because of client's limitation in support php5, there CakePHP helps.
CakePHP Directory Structure
* app/
o config/
o controllers/
o models/
o plugins/
o tmp/
o vendors/
o views/
o webroot/
* cake/
o config/
o docs/
o libs/
* vendors/
Bootstrap.php, Yes it can be changed , either through index.php , or through htaccess.
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.
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 controller.
Take the Framework either from cake site or if you have changed according to your needs start from there. proceed with basic software engineering concepts as requirement gathering etc
Has And Belongs To Many is a kind of associations that can be defined in models for retrieving associated data across different entities.
By calling ajax helper and then using it in controller for rendering.
Can be done on submission in controller, or using javascript/ajax while user is still filling the data. second option is better.
Hot Questions
How to Get the Size of all Tables in a database in MySQL?