更新时间:2022-04-21 21:56:07
您可以使用$formModel
,因为Form Behavior
会将其注入以便查看.
You can use $formModel
as Form Behavior
will inject it to view.
<a
href="<?= Backend::url('author/plugin/your_controller/update/'.$formModel->id) ?>"
class="btn btn-primary oc-icon-pencil">
Edit
</a>
您可以在工具栏中添加此标记,以将用户重定向到编辑模式.
You can add this markup in your toolbar to redirect user to edit mode.
如有疑问,请发表评论.
if any doubt please comment.