A library for rapid development of Bombayworks Curry cms backend modules.
Category: Curry
Organization: Bombayworks
Author: Jose Francisco D'Silva
##Quick Installation: Copy the files from the source/ folder to the cms/include/Silva/ folder of your Curry CMS installation.
##Quick Start:
<?php
class Project_Backend_Products extends Silva_Backend
{
public function __construct()
{
parent::__construct();
$this->setViews(array(
$this->getProductCatView(),
$this->getProductView(),
));
}
protected function getProductCatView()
{
$sv = new Silva_View_Grid('ProductCat', null, $this);
$sv->setBreadcrumbText('Categories');
return $sv;
}
public function onProductCatGridInit(Silva_View $sv)
{
$sv->setDescription("Manage product categories.");
$grid = $sv->getGrid(array(
Silva_View::BUTTON_AEDS,
array(
'caption' => 'Products',
'url' => url('', array('module', 'view' => 'MainProducts')),
),
));
return $grid;
}
protected function getProductView()
{
$sv = new Silva_View_Grid('Product', 'ProductCat', $this);
return $sv;
}
}
Documentation available on the Wiki