2014-12-18 4 views
0

모듈을 만들려고하는데 모듈 목록에 mymodule이 표시되지 않고 다음과 같은 작업을 수행했습니다.모듈이 Prestashop의 모듈 목록에 없습니다.

) 1. prestashop의 루트 디렉토리에있는 modules 디렉토리에 mymodcomments/mymodcomments.php가 있습니다. 이의 코드는

<?php 

class MyModComments extends Module 
{ 
    public function __construct() 
    { 
     $this->name = 'mymodcomments'; 
     $this->tab = 'front_office_features'; 
     $this->version = '0.1'; 
     $this->author = 'coold'; 
     $this->bootstrap = true; 
     parent::__construct(); 
     $this->displayName = $this->l('My Module of product comments'); 
     $this->description = $this->l('With this module, your customers will be able to grade and comments your products.'); 
    } 
} 

?> 

내가 분명히이 코드를 이해하지만, 백 오피스의 모듈 목록에 내 모듈을 볼 수 있습니다.

또 다른 질문은 다음과 같습니다. 저는 프리 스타 쇼와 함께 작업하는 동안 창을 사용하고 있습니다.

답변

0

때때로 모듈 클래스 및 모듈 이름이 다른 대문자 또는 소문자를 사용하는 경우 문제가 발생합니다. 이 정의

시도 :

class mymodcomments extends Module 
{ 
    public function __construct() 
    { 
     $this->name = 'mymodcomments'; 
     $this->tab = 'front_office_features'; 
     $this->version = '0.1'; 
     $this->author = 'coold'; 
     $this->bootstrap = true; 
     parent::__construct(); 
     $this->displayName = $this->l('My Module of product comments'); 
     $this->description = $this->l('With this module, ....'); 
    } 
} 

그것은 우아한 아니지만 트릭을 할 수 있습니다.

대문자 문제에 대해서는 사전 발설시보고되지 않습니다. 설치의 95 %는 정상적으로 작동하지만 일부 사전 설치 설치는 이러한 차이로 인해 문제에 직면 할 수 없습니다.

감사합니다.

관련 문제