Comments: Scaffolding
2 - Admin routing and scaffolding.
If you have enabled admin rounting in your app/config/core.php, for example.
Configure::write('Routing.admin', 'admin');
Then, you can also use prefixes for your scaffolding views.
In your controller just assign your admin prefix to the scaffolding variable.
var $scaffold = 'admin';
Now, all your scaffolding actions will be prefixed with your admin prefix string.
http://example.com/admin/controller/index
http://example.com/admin/controller/view
http://example.com/admin/controller/edit
This is an easy way to configure a back end administration site using scaffolding.

By mustan9 on 6/7/08
1 - Limiting what fields are shown for the index action.
If you want to limit what fields are shown by scaffolding for the "index" action? Then this can be done with the following sample code in your controller.
function beforeRender()
{
if($this->action === 'index')
{
$this->set( 'scaffoldFields', array( 'id', 'title', 'desc', 'created' ) );
}
}
By default scaffolding populates the schaffoldFields view variable with all the fields from the scema for the mode. You can replace this variable with a new list of fields, and only those fields will be shown.