luongit
luongit

Reputation: 117

Yii2 Shopping cart -- Interface 'backend\models\CartPositionInterface' not found

I have problem when using yii shopping cart. This is the my model

<?php 
namespace backend\models;

use Yii;
use yii\db\ActiveRecord;
use yz\shoppingcart;

class Products extends ActiveRecord implements CartPositionInterface

Upvotes: 0

Views: 915

Answers (1)

SiZE
SiZE

Reputation: 2267

Specify the namespace full path to CartPositionInterface

use path_to_file\CartPositionInterface;

or

implements \path_to_file\CartPositionInterface

Upvotes: 2

Related Questions