Setted defaults for choicefield and forms

This commit is contained in:
Antonio de la Rosa 2016-04-17 04:05:01 +02:00
parent 82c5f8b7a0
commit bd5c48c698
2 changed files with 17 additions and 4 deletions

View file

@ -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{
}
?>
?>