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
What is the first file that gets loaded when you run a application using CakePHP and can you change that file?
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.
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 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.
If you have to validate a registration module for a user, what all can be possible ways, which one is the best?
How to Get the Size of all Tables in a database in MySQL?