add card.flag implementation
This commit is contained in:
@@ -8,6 +8,15 @@ use backend\models\InventorySearch;
|
||||
use yii\web\Controller;
|
||||
use yii\web\NotFoundHttpException;
|
||||
use yii\filters\VerbFilter;
|
||||
use common\models\InventoryItem;
|
||||
use yii\data\ActiveDataProvider;
|
||||
use common\components\Helper;
|
||||
use common\models\User;
|
||||
use common\models\Product;
|
||||
use common\models\InventoryGroup;
|
||||
use yii\db\Expression;
|
||||
use yii\db\Query;
|
||||
use backend\models\InventoryItemSearch;
|
||||
|
||||
/**
|
||||
* InventoryController implements the CRUD actions for Inventory model.
|
||||
@@ -48,8 +57,17 @@ class InventoryController extends Controller
|
||||
*/
|
||||
public function actionView($id)
|
||||
{
|
||||
$inventory = $this->findModel($id);
|
||||
|
||||
$searchModel = new InventoryItemSearch(['inventory' => $inventory]);
|
||||
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
|
||||
|
||||
|
||||
$query = new Query();
|
||||
|
||||
return $this->render('view', [
|
||||
'model' => $this->findModel($id),
|
||||
'model' => $inventory,
|
||||
'dataProvider' => $dataProvider
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user