Button widget is used to add a custom button to your webpage.
//Build the button object $search =& $this->build("p4a_button","search"); //Assign a value to the button $search->setValue("Go"); //Use intercept to assign action to this button $this->intercept($search, "onClick","search"); //Now you can anchor this button where you want $this->frame->anchor($search);