public static function buildSelectFromArray($name, $list, $value=NULL, $attributes=NULL, $prependEmpty=NULL) {

		$control = new FormControlSelect($name, $attributes);
		$control->setListByAssociativeArray($list)->prependEmpty($prependEmpty)->setValue($value);
		
		return $control->render();
	
	}
public static function buildSelectFromArray($name, $list, $value=NULL, $attributes=NULL, $prependEmpty=NULL) {

		$control = new FormControlSelect($name, $attributes);
		$control->setListByAssociativeArray($list)->prependEmpty($prependEmpty)->setValue($value);
		
		return $control->render();
	
	}
public static function buildSelectFromArray ( $ name , $ list , $ value = NULL , $ attributes = NULL , $ prependEmpty = NULL ) { $ control = new FormControlSelect ( $ name , $ attributes ) ; $ control -> setListByAssociativeArray ( $ list ) -> prependEmpty ( $ prependEmpty ) -> setValue ( $ value ) ; return $ control -> render ( ) ; }
Proxy for buildSelect that allow to start option list from a simple array.

@param	string	Select’s name.
@param	array	Associative array value=>text for options.
@param	string	Value selected in this select (default NULL).
@param	string	Extended attributes as associative array tag=>value (optional).
@param	string	Prepend empty value (default NULL, no prepend).

@return	string
Proxy for buildSelect that allow to start option list from a simple array .