Yii2购物车 - 界面'后端\ models \ CartPositionInterface'未找到

时间:2015-09-09 01:51:40

标签: yii2 yii-extensions shopping

使用yii shopping cart时遇到问题。这是我的模特

<?php 
namespace backend\models;

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

class Products extends ActiveRecord implements CartPositionInterface

1 个答案:

答案 0 :(得分:2)

指定CartPositionInterface的命名空间完整路径

use path_to_file\CartPositionInterface;

implements \path_to_file\CartPositionInterface