mirror of
https://github.com/CyanoFresh/SmartHomePHP.git
synced 2026-03-15 06:16:52 +01:00
smarthome-49 Divide Item Widgets from Item
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user