title = $generator->getName(); $templates = array(); foreach ($generator->templates as $name => $path) { $templates[$name] = "$name ($path)"; } ?>

title); ?>

getDescription(); ?>

renderFile($generator->getViewFile(), array( 'generator' => $generator, 'form' => $form, )); ?> field($generator, 'template')->label(array('label' => 'Code Template'))->dropDownList($templates)->hint(' Please select which set of the templates should be used to generated the code. '); ?>
'preview', 'class' => 'btn btn-primary')); ?> 'generate', 'class' => 'btn btn-danger')); ?>
' . $result . '
'; } elseif (isset($files)) { echo $this->render('_files', array( 'generator' => $generator, 'files' => $files, )); } ?>