Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

First steps on GUI V1

Blair2004 edited this page Nov 12, 2014 · 1 revision

As it's said, GUI-V1 improve APP interface development. With this, you don't really need to use HTML code. Every items is generated using PHP methods.

This is the first tutorial about how to create Tendoo UI with GUI-V1.

First, you have to load GUI Class within your controller. Since you controller inherits from "Libraries", it acquire "Libraries" methods, between those, "Loader" class, which is used to load views view and other libraries located on "tendoo-core/libraries".

Proceed this way to load this Class.

$this->load->library( 'gui' );
// Current Object Environment has now a new sub-object called "Gui"
var_dump( $this->gui );
// Will output gui class details

Now it's time for us to create UI. It's supposed that every data you need are defined on Controller, because it's recommended to make UI on a view file and not on Controller.

Next : How to set cols width