Skip to content
Derek Jones edited this page Jul 5, 2012 · 28 revisions

Category:Libraries::Database Category:Advanced::CRUD

Rapyd is a PHP5 minimalistic framework made to build applications based on MVC and CRUD patterns.

It was (in 2006) a Library of CI, now is a stand alone MVC framework. However each new release is tested with latest CI release, and when possible a preconfigured version of CI+Rapyd is released on rapyd.com website.

Widgets

Rapyd has a widget oriented architecture (grids, forms, tables, etc..) and is focused to keep a concise syntax to build simple (or complex) CRUD interfaces.

datafilter

Image:datafilter.gif

$filter = new datafilter_library();
$filter->label = 'Article Filter';

$filter->db->select("articles.*, authors.*");
$filter->db->from("articles");
$filter->db->join("authors","authors.author_id=articles.author_id","LEFT");

$filter->field('input','title','Title')->attributes(array('style' => 'width:170px'));
$filter->field('radiogroup','public','Public')->options(array("y"=>"Yes", "n"=>"No"));
$filter->buttons('reset','search');
$filter->build();

datagrid

Image:datagrid.gif

$grid = new datagrid_library();
$grid->label = 'Article List';
$grid->per_page = 10;

$grid->source($filter);
$grid->column('article_id','ID',true)->url('edit?show={article_id}','detail.gif');
$grid->column('title','Title');
$grid->column('body','Body')->callback('escape');

$grid->build();

dataedit

Image:dataedit.gif

$edit = new dataedit_library();
$edit->label = 'Manage Article';
$edit->back_url = $this->url('filtered_grid');
  
$edit->source('articles');
$edit->field('input','title','Title')->rule('trim','required');
$edit->field('radiogroup','public','Public')->options(array("y"=>"Yes", "n"=>"No"));
$edit->field('dropdown','author_id','Author')->options('SELECT author_id, firstname FROM authors')
     ->rule('required');
$edit->field('date','datefield','Date')->attributes(array('style'=>'width: 80px'));
$edit->field('editor','body','Description')->rule('required');
  
$edit->buttons('modify','save','undo','back');
$edit->build();

Online download / Support site: [url]http://www.rapyd.com/[/url] current version : 0.6 can be used standalone or as library in CI 1.7.1

Clone this wiki locally