簡體   English   中英

yiibooster可排序表行不起作用

[英]yiibooster sortable table rows are not working

我對Yiibooster可排序表行有問題。 由於兩個錯誤,它不起作用。

  1. 系統未找到文件“ http://yii-cms.com/protected/extensions/bootstrap/assets/js/jquery.sortable.gridview.js”(404 ),盡管其余的yiibooster文件正在工作並且我按照說明進行了安裝。 “ jquery.sortable.gridview.js”的路徑是由系統生成的,我檢查了該文件並且該文件存在。

我通過編寫以下命令安裝了Yiiboster:

<?php
// main/config.php
Yii::setPathOfAlias('bootstrap', dirname(__FILE__).'/../extensions/bootstrap');
'preload'=>array('log', 'bootstrap'),
// autoloading model and component classes
'import'=>array(
    'application.models.*',
    'application.components.*',
    'application.modules.admin.components',
    'application.modules.admin.models.*',
    'bootstrap.*',
 ),
// application components
'bootstrap' => array(
     'class' => 'bootstrap.components.Bootstrap',
 ),
?>
  1. 第二個錯誤發生在視圖文件中“ afterSortableUpdate”屬性附近。
    • Uncaught TypeError: undefined is not a function

請給我一些建議。 謝謝。

這看起來像是YiiBooster的錯誤,請嘗試使用最新版本,或在此處進行報告。 請提及您的Yii版本和YiiBooster版本。

必須在Yii中正確注冊資產,以便將其緩存在資產文件夾中。 受保護的文件夾受到保護,並且對它的請求被阻止。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM