bbcrew/BB — pull request #4 by func0der (2013-03-25 11:06:15+00:00)
Title: Accept custom actions in BBTableHelper

Added method for rendering user defined actions.
They should be defined as the following:

echo $this->BbTable->render(
$data,
array(
'columns' => array(
'id',
'label',
'size',
'actions' => array(
'items' => array(
// Default actions begin
'view',
'edit',
'delete',
// /Default actions end
// Custom actions begin
'fooBarAction' => array(
'show' => 'ss',
'href' => array(
'controller' => 'foo',
'action' => 'baar'
// NOTE: ID of the current element get automatically inserted as FIRST element by defaults definition
),
),
// Custom actions end
),
),
),
)
);