Chapter 15. Widget sets

Table of Contents

Using a widget set
widet_set() constructor
close ()
Text & paragraphs
print ()
paragraph ()
image ()
Form widgets
inputline ()
password ()
textarea ()
checkbox ()
radiobox ()
select ()
fileform ()
hidden ()

Widget sets are collections of functions that create HTML elements. They're useful to set up pages with a common layout.

At the time there's only a native HTML widget set for most block elements which you'll find very useful to print form elements.

Using a widget set

Widget set are packed into classes.

widet_set() constructor

  object new widget_set ();
	
	

close ()

Some widget functions might delay output until this function is called. Instead of php's internal function echo () function widget_set::print () to preserve the right code order.