<tfoot id='BQNQk'></tfoot>

      <small id='BQNQk'></small><noframes id='BQNQk'>

      1. <i id='BQNQk'><tr id='BQNQk'><dt id='BQNQk'><q id='BQNQk'><span id='BQNQk'><b id='BQNQk'><form id='BQNQk'><ins id='BQNQk'></ins><ul id='BQNQk'></ul><sub id='BQNQk'></sub></form><legend id='BQNQk'></legend><bdo id='BQNQk'><pre id='BQNQk'><center id='BQNQk'></center></pre></bdo></b><th id='BQNQk'></th></span></q></dt></tr></i><div id='BQNQk'><tfoot id='BQNQk'></tfoot><dl id='BQNQk'><fieldset id='BQNQk'></fieldset></dl></div>
        • <bdo id='BQNQk'></bdo><ul id='BQNQk'></ul>
        <legend id='BQNQk'><style id='BQNQk'><dir id='BQNQk'><q id='BQNQk'></q></dir></style></legend>

        如何使用 Yii 创建带有确认对话框的链接?

        时间:2023-08-17
        1. <i id='JW1s1'><tr id='JW1s1'><dt id='JW1s1'><q id='JW1s1'><span id='JW1s1'><b id='JW1s1'><form id='JW1s1'><ins id='JW1s1'></ins><ul id='JW1s1'></ul><sub id='JW1s1'></sub></form><legend id='JW1s1'></legend><bdo id='JW1s1'><pre id='JW1s1'><center id='JW1s1'></center></pre></bdo></b><th id='JW1s1'></th></span></q></dt></tr></i><div id='JW1s1'><tfoot id='JW1s1'></tfoot><dl id='JW1s1'><fieldset id='JW1s1'></fieldset></dl></div>
            <legend id='JW1s1'><style id='JW1s1'><dir id='JW1s1'><q id='JW1s1'></q></dir></style></legend>
              <tbody id='JW1s1'></tbody>

                <small id='JW1s1'></small><noframes id='JW1s1'>

                  <bdo id='JW1s1'></bdo><ul id='JW1s1'></ul>

                  <tfoot id='JW1s1'></tfoot>

                  本文介绍了如何使用 Yii 创建带有确认对话框的链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何在 Yii 框架中创建带有确认对话框的链接?

                  How can I create a link with a confirmation dialog in Yii framework?

                  假设我有

                  CHtml::link('Delete',array('wsrecruiteducation/delete','id'=>$model->EducID));
                  

                  如何在删除数据之前将上面的代码片段转换为带有确认警报的删除链接?

                  how do I convert that code snippet above, into a delete link with a confirm alert before deleting the data?

                  推荐答案

                  你只需要同时使用CHtml::link的最后一个参数:

                  You just need to also use the last parameter of CHtml::link:

                  CHtml::link(
                      'Delete',
                       array('wsrecruiteducation/delete','id'=>$model->EducID),
                       array('confirm' => 'Are you sure?')
                  );
                  

                  这篇关于如何使用 Yii 创建带有确认对话框的链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Yii中如何使用事件 下一篇:如何在 yii2 中添加散列密码

                  相关文章

                  <small id='zz5FY'></small><noframes id='zz5FY'>

                  <tfoot id='zz5FY'></tfoot>
                  <i id='zz5FY'><tr id='zz5FY'><dt id='zz5FY'><q id='zz5FY'><span id='zz5FY'><b id='zz5FY'><form id='zz5FY'><ins id='zz5FY'></ins><ul id='zz5FY'></ul><sub id='zz5FY'></sub></form><legend id='zz5FY'></legend><bdo id='zz5FY'><pre id='zz5FY'><center id='zz5FY'></center></pre></bdo></b><th id='zz5FY'></th></span></q></dt></tr></i><div id='zz5FY'><tfoot id='zz5FY'></tfoot><dl id='zz5FY'><fieldset id='zz5FY'></fieldset></dl></div>
                  • <bdo id='zz5FY'></bdo><ul id='zz5FY'></ul>

                  1. <legend id='zz5FY'><style id='zz5FY'><dir id='zz5FY'><q id='zz5FY'></q></dir></style></legend>