We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, add suport, type input Select in now version..? https://github.com/croogo/croogo/blob/master/Settings/View/Helper/SettingsFormHelper.php To be able to generate select for example get list timezone_abbreviations_list() in Setting "Site"
The text was updated successfully, but these errors were encountered:
Example Insert code SettingsFormHelper ... input()
} elseif (is_int(array_search('select-function', (array)explode(':', $inputType)[0])) === true) { /* function tzlist(){ $l = array(); foreach(timezone_abbreviations_list() as $timezone){ foreach($timezone as $val){ if(isset($val['timezone_id'])){ $l[$val['timezone_id']]=$val['timezone_id']; } } } return $l; }*/ $func = explode(':', $inputType)[0]; $func = str_ireplace($func.':','',$inputType); if(function_exists($func)){ $options = $func(); }else{ $options=array(); } $output = $this->Form->input("Setting.$i.value", array( 'type' => 'select', 'options' => $options, 'value' => $setting['Setting']['value'], 'help' => $setting['Setting']['description'], 'label' => $label, )); }
Sorry, something went wrong.
I've been meaning to implement this feature. I'll use your patch as a base for this.
@dakota has already implemented this in the 3.x branch.
No branches or pull requests
Hi,
add suport, type input Select in now version..?
https://github.com/croogo/croogo/blob/master/Settings/View/Helper/SettingsFormHelper.php
To be able to generate select for example get list timezone_abbreviations_list() in Setting "Site"
The text was updated successfully, but these errors were encountered: