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
?