1
echo $this->form->create('Cost', array('action' => 'add'));

        echo $this->form->inputs(array(
            'legend' => false,
            'cost_type_id' => array(
                'class' => 'span-8',
                'options' => $cost_types
            )
        ));

        echo $this->html->tag(
            'div',
            $this->form->button(
                sprintf('%s %s',
                    $this->html->image('icons/silk/application_add.png'),
                    __('Create new Cost', true)
                ),
                array(
                    'title' => sprintf('Add')
                )
            ),
            array('class' => 'buttons clearfix')
        );
        echo $this->form->end();

このフォームを自動送信するルーティング プレフィックス セットがあります。

/prefix/costs/add

form->create、またはのいずれかでオフにできる方法はありますform->buttonか?

4

1 に答える 1