8000 GitHub - josedsilva/Silva: Library for rapid development of Bombayworks Curry CMS backend modules.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Library for rapid development of Bombayworks Curry CMS backend modules.

Notifications You must be signed in to change notification settings

josedsilva/Silva

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 

Repository files navigation

Silva

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

About

Library for rapid development of Bombayworks Curry CMS backend modules.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0