Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Christian Salazar edited this page · 23 revisions
Clone this wiki locally

Welcome to the jamboree wiki!

in this place i'll write some code examples to demostrate the Jamboree's usage.

Please take a look at UML Diagrams if you like to know more about how Jamboree is organized.

How to: Jamboree Demo.

First, download the extension, install it in your 'extensions' directory, and publish it in your 'imports'. You can use the GIT command for cloning this repo instead of downloading it, to do so please:

cd /home/yourapp/protected/extensions

git clone

Next, create an action (in siteController.php),

public function actionTest(){

And finally, copy & paste the showcase code below in /<yourapp>/protected/views/site/test.php

To test it, in your browser type: http://localhost/yourapp/index.php?r=site/test

Showcase / Examples:

A real website built using Jamboree

real checkout example

real e-commerce

a full ajax form

A Login Form

$main = new JamVertPanel();
$b = $main->add(new JamElement("b",'Please login'));
// now, horz because it grows horizontally
$hpanel = $main->add(new JamHorzPanel());  
$okbutton = $hpanel->add(CHtml::submitButton('Login'));
$cancelbutton = $hpanel->add(CHtml::submitButton('Cancel',
$hpanel->addHtmlOption('style','background-color: #def');

it will render:

login form

A 3panel layout, top and bottom bars.

$main = new JamVertPanel();
$topbar = new JamHorzPanel();
$bottombar = new JamHorzPanel();
$bodybar = new JamHorzPanel();
$panel1 = new JamVertPanel();
$panel2 = new JamVertPanel();
$panel3 = new JamVertPanel();

// basic layout



// stylish


$topbar->addHtmlOption('style','background-color: darkred; color: white;');
    'style'=>'margin-right: 20px;padding: 3px;border: none;'));
$topbar->add("item 1");
$topbar->add("item 2");
$topbar->add("item 3");
$topbar->add("item 4");

$bodybar->addHtmlOption('style','background-color: #fec;');

$panel1->addHtmlOption('style','background-color: #eee');
$panel1->add("panel 1 text content");

$panel2->add('content for panel 2');

$panel3->add('content for panel 3');

$bottombar->add('this is the bottom bar, you can insert more panels here');
$bottombar->addHtmlOption('style','background-color: #eee;');


it will render:

3 panel layout with top and bottom bar


$table = new JamTable();
        array('text'=>'col 1',
            'htmlOptions'=>array('style'=>'background-color: #eee')),
        'any col',
            'htmlOptions'=>array('style'=>'text-align: right')),
    ,array('style'=>'border: none;')
        'htmlOptions'=>array('style'=>'background-color: #eee;border: none;')),
        'some text',
            'htmlOptions'=>array('style'=>'text-align: right')),

It will render:

A table

Forms (checkbox, radiobuttons, etc)

(Please pay attention to the class: JamHorzRadioButtons)

$form = new JamVertPanel('form'); // creates a 'form', instead of default 'div'
$allLabels = array();

// standard input
$label = $form->add(new JamElement('label','Your Name:'));
$allLabels[] = $label;
$firstname = $form->add(new JamElement('input'));

// a Radio Buttons
$label = $form->add(new JamElement('label','Gender:'));
$radio = $form->add(new JamHorzRadioButtons('gender'));
$allLabels[] = $label;

// checkboxes
$label = $form->add(new JamElement('label','Do you like Jamboree ?'));
$checkbox = $form->add(new JamElement('input'));
$allLabels[] = $label;

$bottomPanel = new JamHorzPanel();
$submit = $bottomPanel->add(new JamElement('input'));


foreach($allLabels as $label){
    $label->addHtmlOption('style','font-weight: bold;');



It will render:

A form

Something went wrong with that request. Please try again.