"sFirst": "首页", "sPrevious": "上页", "sNext": "下页", "sLast": "末页" }, "oAria": { "sSortAscending": ": 以升序排列此列", "sSortDescending": ": 以降序排列此列" } } }); JS; $this->registerJs($js); DataTableAsset::register($this); ?> <div class="row" style="margin-top: 50px;"> <div class="col-md-12"> <div class="box"> <div class="box-header"> <h3 class="box-title">Data Table With Full Features</h3> </div><!-- /.box-header --> <div class="box-body"> <table id="example" class="display table table-bordered table-striped" cellspacing="0" width="100%"> <thead> <tr> <th>Name</th> <th>Position</th> <th>Office</th> <th>Extn.</th>
public function run() { $view = $this->getView(); DataTableAsset::register($view); $view->registerJs($this->getClientOptions()); }