smarthome-49 Divide Item Widgets from Item

This commit is contained in:
Alex Solomaha
2017-03-03 19:20:30 +02:00
parent 038c35ce5c
commit f0fdf497b6
40 changed files with 989 additions and 223 deletions

View File

@@ -8,13 +8,15 @@ use app\modules\api\components\WebSocketAPIBridge;
use Yii;
use yii\base\InvalidParamException;
use yii\base\NotSupportedException;
use yii\rest\Controller;
use yii\rest\ActiveController;
use yii\web\BadRequestHttpException;
use yii\web\NotFoundHttpException;
use yii\web\ServerErrorHttpException;
class ItemController extends Controller
class ItemController extends ActiveController
{
public $modelClass = 'app\models\Item';
/**
* @inheritdoc
*/
@@ -29,14 +31,6 @@ class ItemController extends Controller
];
}
/**
* @throws NotSupportedException
*/
public function actionIndex()
{
throw new NotSupportedException();
}
/**
* @param $item_id
* @return array