What is a component, helper and why are they used, is there other way we can do same thing, what is better? ~ Interview Questions & Answers

Saturday, May 7, 2011

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.

0 comments: