public function actionAlmacenes() { $model = new VwStocktotalAlmacenes('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['VwStocktotalAlmacenes'])) { $model->attributes = $_GET['VwStocktotalAlmacenes']; } $this->render('adminalmacenes', array('model' => $model)); }
public function actionAlmacenes() { $model = new VwStocktotalAlmacenes('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['VwStocktotalAlmacenes'])) { $model->attributes = $_GET['VwStocktotalAlmacenes']; } $nuevo = new Alinventario(); // new CArrayDataProvider($dataArray); $datostocktotales = $nuevo->getStockValTotal(); $proveedor = new CArrayDataProvider($nuevo->getStockValAlmacen()); $this->render('adminalmacenes', array('model' => $model, 'proveedor' => $proveedor, 'stocktotales' => $datostocktotales)); }