Class 'app\models\Ordersgoods' not found
Вот кусок кода:
Код: Выделить всё
<?php
namespace app\controllers;
use app\models\Catalog;
use Yii;
use app\models\Ordersgoods;
use app\models\OrdersgoodsSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\db\Query;
/**
* OrdersgoodsController implements the CRUD actions for Ordersgoods model.
*/
class OrdersgoodsController extends Controller
{
/**
* @inheritdoc
*/
public function behaviors()
{
return [
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['POST'],
],
],
];
}
/**
* Lists all Ordersgoods models.
* @return mixed
*/
public function actionIndex()
{
$model = new Ordersgoods(); //<---- ТУТ ОШИБКА