Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含两个组件的页面。其中之一是显示来自模型的数据字段的表单。另一个组件有一个按钮,它使用关联模型的另一个 id 重新加载表单。
如何禁用该模型未保存更改的警告消息?
这很简单!
$form->addClass("ignore_changes");