public function __construct($name, $options = array(), $attributes = NULL) { parent::__construct($name, $attributes); $list = new HtmlSelect($name); $list->setTagName("select"); $this->renderer = new PhBsRenderer(new Select($name, array(), $attributes), $list); $this->setOptions($options); }
public function __construct($name, array $attributes = null) { parent::__construct($name, $attributes); $this->renderer = new PhBsRenderer(new Text($name, $attributes), new HtmlInput($name)); }