12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- class sfWidgetFormInput extends sfWidgetForm
- {
-
- protected function configure($options = array(), $attributes = array())
- {
- $this->addOption('type', 'text');
- $this->setOption('is_hidden', false);
- }
-
- public function render($name, $value = null, $attributes = array(), $errors = array())
- {
- return $this->renderTag('input', array_merge(array('type' => $this->getOption('type'), 'name' => $name, 'value' => $value), $attributes));
- }
- }
|