|
- <?php
-
-
-
- namespace backend\controllers;
-
- use common\models\Producer ;
-
- class BackendController extends \common\controllers\CommonController
- {
-
-
- public function checkProductsPointsSale()
- {
- if (!Product::searchCount() || !PointSale::searchCount()) {
- $this->redirect(['site/index', 'error_products_points_sale' => 1]);
- }
- }
-
- }
-
- ?>
|