', $this['field']->attributes(compact('name'))); $selected_value = $this['field']->attributes(compact('value')); foreach ($this['path']->files("layouts:modules/layouts") as $filename) { $option = rtrim($filename, ".php"); $readable = ucfirst($option); $selected = ""; if ($option == $value) { $selected = "selected=\"true\""; } printf("", $option, $selected, $readable); } printf('');