protected function getBasicForm($values = array())
    {
        $form = new Form();
        $form->setMethod('POST');
        $form->setAction(PHPCI_URL . 'settings/basic');

        $field = new Form\Element\Select('language');
        $field->setRequired(true);
        $field->setLabel(Lang::get('language'));
        $field->setClass('form-control');
        $field->setContainerClass('form-group');
        $field->setOptions(Lang::getLanguageOptions());
        $field->setValue(Lang::getLanguage());
        $form->addField($field);


        $field = new Form\Element\Submit();
        $field->setValue(Lang::get('save'));
        $field->setClass('btn btn-success pull-right');
        $form->addField($field);

        $form->setValues($values);

        return $form;
    }
protected function getBasicForm($values = array())
    {
        $form = new Form();
        $form->setMethod('POST');
        $form->setAction(PHPCI_URL . 'settings/basic');

        $field = new Form\Element\Select('language');
        $field->setRequired(true);
        $field->setLabel(Lang::get('language'));
        $field->setClass('form-control');
        $field->setContainerClass('form-group');
        $field->setOptions(Lang::getLanguageOptions());
        $field->setValue(Lang::getLanguage());
        $form->addField($field);


        $field = new Form\Element\Submit();
        $field->setValue(Lang::get('save'));
        $field->setClass('btn btn-success pull-right');
        $form->addField($field);

        $form->setValues($values);

        return $form;
    }
protected function getBasicForm ( $ values = array ( ) ) { $ form = new Form ( ) ; $ form -> setMethod ( 'POST' ) ; $ form -> setAction ( PHPCI_URL . 'settings/basic' ) ; $ field = new Form \ Element \ Select ( 'language' ) ; $ field -> setRequired ( true ) ; $ field -> setLabel ( Lang :: get ( 'language' ) ) ; $ field -> setClass ( 'form-control' ) ; $ field -> setContainerClass ( 'form-group' ) ; $ field -> setOptions ( Lang :: getLanguageOptions ( ) ) ; $ field -> setValue ( Lang :: getLanguage ( ) ) ; $ form -> addField ( $ field ) ; $ field = new Form \ Element \ Submit ( ) ; $ field -> setValue ( Lang :: get ( 'save' ) ) ; $ field -> setClass ( 'btn btn-success pull-right' ) ; $ form -> addField ( $ field ) ; $ form -> setValues ( $ values ) ; return $ form ; }
Get the Basic settings form.
@param array $values
@return Form
Get the Basic settings form .