Commit d027ab93 authored by Shakarim Sapa's avatar Shakarim Sapa

- Тест

parent 93d6f987
......@@ -12,6 +12,7 @@ use common\modules\content\models\CoContent;
use Yii;
use common\components\AdminController;
use common\modules\content\models\SearchCoContent;
use yii\filters\VerbFilter;
class CasesAdminController extends AdminController {
public static function actionsTitles(){
......@@ -25,6 +26,18 @@ class CasesAdminController extends AdminController {
];
}
public function behaviors()
{
return [
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['post'],
],
],
];
}
public function actionManage(){
$casesSearchModel = new SearchCoContent();
$casesDataProvider = $casesSearchModel->searchByType(4, Yii::$app->request->queryParams);
......
......@@ -57,7 +57,6 @@ $blocks = \common\modules\content\models\CoBlocks::find()->all();
<?= $form->field($model, 'file')->fileInput() ?>
<ul class="nav nav-pills">
<?php var_dump($model->getLangsHelper());die; ?>
<?php $c = 0; foreach ($model->getLangsHelper() as $i => $content) : $c++; ?>
<li class="<?=($c==1?'active':'')?>"><a href="#lang-<?=$content->lang->url?>" data-toggle="tab"><?=$content->lang->name?></a></li>
<?php endforeach; ?>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment