Setted defaults for choicefield and forms
This commit is contained in:
parent
82c5f8b7a0
commit
bd5c48c698
2 changed files with 17 additions and 4 deletions
|
|
@ -10,7 +10,16 @@ use PhangoApp\PhaModels\Forms\BaseForm;
|
|||
|
||||
class SelectForm extends BaseForm{
|
||||
|
||||
public $arr_select=array();
|
||||
public $arr_select=[];
|
||||
|
||||
public function __construct($name, $value, $arr_select=[])
|
||||
{
|
||||
|
||||
parent::__construct($name, $value);
|
||||
|
||||
$this->arr_select=$arr_select;
|
||||
|
||||
}
|
||||
|
||||
public function form()
|
||||
{
|
||||
|
|
@ -49,4 +58,4 @@ class SelectForm extends BaseForm{
|
|||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue