是否可以向 CakePHP 的 postLink 表单助手创建的隐藏表单添加一个类?
这是我的代码
表单->postLink( ' ' 。__('删除'), ['action' => 'delete', $this->fetch('item')], ['confirm' => __('你确定要删除#{0}吗?', $this->fetch('item')) ,'转义' => 假 ,'标题' => __('删除') ,'class' => 'btn btn-danger btn-xs isAction' ]) ?>
请注意,我不希望将类添加到创建的链接中。
欢迎任何想法!