public function actionItemdelete() { $cart = new Cart(); $cart->destroy(); return $this->redirect(['create']); }
<?php use mcms\cart\Cart; $cart = new Cart(); use app\models\Inventorydetail; use app\models\Inventory; use app\models\Budget; ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <style> </style> <body> <div class="container" style="padding-left: 50px; font-size:15pt;"> <div> <img src="images/icons/k.jpg" width="75" height="71" class="pull-left" style="margin-top: 1px;"> <div style="margin-left: 200px;"> <strong style="font-size:21pt; ">บันทึกข้อความ</strong> </div> </div> <div> <strong>ส่วนราชการ</strong> โรงพยาบาลพรเจริญ<br> <strong>ที่</strong> บก.0032.303 (04) /217
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; use app\models\Products; use app\models\Productmain; use yii\helpers\ArrayHelper; use app\models\Category; use app\models\Budget; use app\models\Partner; use mcms\cart\Cart; use yii\jui\DatePicker; //use kartik\date\DatePicker; $cart = new Cart(); if ($_POST) { $cart->update($_POST); Yii::$app->controller->refresh(); } ?> <?php $form = ActiveForm::begin(['action' => 'index.php?r=inventory/process']); ?> <div class="panel panel-info"> <div class="panel panel-heading"> นำเข้าพัสดุ กรอกรายละเอียดในการส่งสินค้า </div> <div class="panel panel-body"> <div class="row"> <div class="col-md-3">