當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Category::deleteModesList方法代碼示例

本文整理匯總了PHP中app\modules\shop\models\Category::deleteModesList方法的典型用法代碼示例。如果您正苦於以下問題:PHP Category::deleteModesList方法的具體用法?PHP Category::deleteModesList怎麽用?PHP Category::deleteModesList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在app\modules\shop\models\Category的用法示例。


在下文中一共展示了Category::deleteModesList方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

?>
    </div>
    <?php 
\yii\bootstrap\Modal::end();
?>
    <?php 
\yii\bootstrap\Modal::begin(['id' => 'delete-category-confirmation', 'footer' => Html::button(Yii::t('app', 'Delete'), ['class' => 'btn btn-primary', 'data-action' => 'confirm', 'data-dismiss' => 'modal']) . Html::button(Yii::t('app', 'Cancel'), ['class' => 'btn btn-default', 'data-dismiss' => 'modal']), 'header' => Yii::t('app', 'Are you sure you want to delete a selected category?')]);
?>
    <div class="control-group">
        <label class="control-label" for="delete-action"><?php 
echo Yii::t('app', 'Product deleting rules');
?>
</label>
        <div>
            <?php 
echo Html::dropDownList('delete_mode', \app\modules\shop\models\Category::DELETE_MODE_SINGLE_CATEGORY, \app\modules\shop\models\Category::deleteModesList(), ['class' => 'form-control', 'id' => 'delete-mode']);
?>
        </div>
    </div>
    <?php 
\yii\bootstrap\Modal::end();
?>
    <div style="z-index: 99999" class="modal fade" id="newStaticValue"  role="dialog"  aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
            </div>
        </div>
    </div>
    <?php 
$this->endBody();
?>
開發者ID:tqsq2005,項目名稱:dotplant2,代碼行數:31,代碼來源:main.php


注:本文中的app\modules\shop\models\Category::deleteModesList方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。