Views: showing off

Getting your data to the view is mostly Cake’s responsibility.

Doing something interesting with it is yours.

The data available in the View is set in the Controller.

In a controller action:

$this->set("job_description", "Oh, you have to bake a lot. And put icing on top. Regular duties" );

This important variable is now available in the View file for this action as $job_description.

[UPCOMING FEATURE] Plugins: the View part of it

Plugins have their own views, models and controllers.

They are “apps within the main app”.

Layout is used from the main app though.

 
docs/view.txt · Last modified: 2006/02/01 10:22 by olle