错误尝试在Controller中包含PrestaShopWebService

时间:2016-04-05 07:29:31

标签: symfony prestashop prestashop-1.5

我正在尝试在控制器中包含prestashop的web服务库,但是当我尝试包含这个类时,我得到了下一个错误:

Attempted to load class "PrestaShopWebService2" from namespace "AppBundle\Services".
Did you forget a "use" statement for another namespace? 

Prestashop v1.5.6

PrestaShopWebService2:

namespace AppBundle\Services;
class PrestaShopWebService2
{//code}

DefaultController:

use AppBundle\Services\PrestaShopWebService2;
public function indexAction()
    {
        //code
        $persta2 = new PrestaShopWebService2("MyURL","mykey", false);
        //code
    }

问题出在哪里?

0 个答案:

没有答案