고도몰 관련 위젯 만드는방법...

2020-01-06 (월) 11:32:33 4,076

일단 너무 죄송합니다.

물어볼곳이 없어서..ㅠㅠ

위젯을 생성 해 보려고 이런식으로 했는데 없는 클래스..? 라고 나오네요 ㅠㅠ

히..힘을 주세요!!

<?php

/**
 * This is commercial software, only users who have purchased a valid license
 * and accept to the terms of the License Agreement can install and use this
 * program.
 *
 * Do not edit or add to this file if you wish to upgrade Godomall5 to newer
 * versions in the future.
 *
 * @copyright ⓒ 2016, NHN godo: Corp.
 * @link http://www.godo.co.kr
 */
namespace Widget\Front\Proc\CategoryMainWidget;

/**
 * Class MypageQnaController
 *
 * @package Bundle\Controller\Front\Outline
 * @author  Young Eun Jung <[email protected]>
 */
class CategoryMainWidget extends \Bundle\Widget\Front\Proc\CategoryMainWidget
{
    $cateDepth = gd_isset($this->getData('cateDepth'),4);
    $getData = $category->getCategoryCodeInfo($cateCd, $cateDepth,true,false,'pc');
    $this->setData('data', $getData);

    $this->getView()->setPageName('proc/_category_main');
}

답변 1개

2020-01-06 (월) 13:00:07

class CategoryMainWidget extends \Bundle\Widget\Front\Proc\CategoryMainWidget

고도몰에 이런 클래스명을 가진 위젯이 있나요?

extends 뒤에 들어가는 클래스명은 현재 존재하는 것이어야 합니다.

고도몰 원본 소스에서 복사하기를 클릭하셔서 개발 작업 소스로 복사하셔서 작업하셔야 할 겁니다.

답변을 작성하려면 로그인이 필요합니다.