public function __construct($site) { parent::__construct(); $this->setAction('/site/edit/id/' . $site['id']); $this->id->setAttrib('readonly', 'readonly'); }