public function __construct($name, $form) { parent::__construct($name, $form); $this->attrs['type'] = 'password'; }