Create a file ModuleNameForm.php file in src/ModuleName/Form direcotry.
<?php namespace ModuleName\Form; use Zend\Form\Form; class ModuleNameForm extends Form { public function __construct($name = null) { parent::__construct('____'); $this->add(array( 'name' => 'country', 'type' => 'Radio', 'options' => array( 'label' => 'Country', 'value_options' => array( 'USA' => 'USA', 'CAN' => 'Canada', ), ) )); } }
No comments:
Post a Comment