Friday, November 26, 2010

cakephp components

Components are block of code that are shared between controllers. It is simply class which we create under " /app/controllers/components/".

class HelloComponent extends Object {
function printhello() {
return "Hello";
}
}

?>

You can include this components in controllers by using below line.
var $components = array('Hello', 'Session');



Tuesday, November 23, 2010

cakephp

Cakephp is framework for developing web-application in PHP.

It is based on MVC framework.

Wednesday, November 10, 2010

cakephp Form

The FormHelper is a new addition to CakePHP. Most of the heavy lifting in form creation is now done using this new class, rather than (now deprecated) methods in the HtmlHelper. The FormHelper focuses on creating forms quickly, in a way that will streamline validation, re-population and layout. The FormHelper is also flexible - it will do almost everything for you automagically, or you can use specific methods to get only what you need.