-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Rapyd Components
Category:Libraries | Category:Libraries::CRUD | Category:Libraries::Community
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.
[h3]Widgets[/h3]
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.
[h4]datafilter[/h4]
[code] $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(); [/code]
[h4]datagrid[/h4]
[code] $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();
[/code]
[h4]dataedit[/h4]
[code]
$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();
[/code]
Online download / Support site: [url]http://www.rapyd.com/[/url] current version : 0.6 based on CI 1.7.1