2012-05-10 1 views
0

Magento Extension을 설계 할 때 문제가 있습니다. 구성의 "일반"섹션 아래에 구성 섹션 페이지가있는 system.xml 파일을 만들었습니다.Magento 패키지/확장 문제 - 완전히로드되지 않습니다.

Windows에서 Magento Community 1.6.2를 사용하여 WebMatrix/MySql 설치 7.5로 확장을 개발했습니다.

나는 의심 할 여지없이 가상 상자를 만들었고 php/apache2 및 Magento Community 1.7로 완전히 설정했다고 생각합니다. 내 Extension 패키지를 내 Ubuntu Virtual Box의 Magento 1.7에 성공적으로 설치했습니다. Magento Advanced Sections에서 내 확장 기능을 사용할 수 있습니다. 그러나 내 확장 구성 페이지는 구성의 "일반"절에 표시되지 않습니다. 구성 페이지를 전혀로드 할 수 없습니다.

내 확장 프로그램을 만드는 데 사용 된 1.6.2처럼 내 Windows 상자에 다른 Magento 1.7 사이트를 만들었습니다. 사이트에 패키지 설치를 다운로드했는데 캐시를 비운 후에 모든 것이 발견되었습니다.

우분투의 Magento 1.7에 대한 모든 캐시는 지워졌지만 여전히 아무것도 표시되지 않습니다. Ubuntu Magento Professional 버전 1.10.1.0 Enviornment에 클라이언트를 설치하기 위해 패키지를 제공했으며 Magento와 동일한 문제가 있습니다.

누구나 단서가 있습니까? 아래는 내 System.xml이지만 문제가 있는지 의심 스럽습니다. 또한 내 우분투 환경에서 나는 모든 777 권한을 부여했습니다.

<config> 
    <sections> 
    <Communicator translate="label"> 
     <label>nChannel Communicator</label> 
     <tab>general</tab> 
     <sort_order>5000</sort_order> 
     <frontend_type>text</frontend_type> 
     <show_in_default>1</show_in_default> 
     <show_in_website>1</show_in_website> 
     <show_in_store>1</show_in_store> 
     <groups> 
     <Credentials translate="label"> 
      <label>Credentials</label> 
      <frontend_type>text</frontend_type> 
      <sort_order>100</sort_order> 
      <show_in_default>1</show_in_default> 
      <show_in_website>1</show_in_website> 
      <show_in_store>1</show_in_store> 
      <fields> 
      <ENABLED translate="label"> 
       <label>Enabled</label> 
       <comment> 
       <![CDATA[If disabled no nChannel functionality will operate.]]> 
       </comment> 
       <frontend_type>select</frontend_type> 
       <source_model>adminhtml/system_config_source_yesno</source_model> 
       <sort_order>10</sort_order> 
       <show_in_default>1</show_in_default> 
       <show_in_website>1</show_in_website> 
       <show_in_store>1</show_in_store> 
      </ENABLED> 
      <TOKEN translate="label"> 
       <label>Token</label> 
       <comment> 
       <![CDATA[nChannel Token for communication to API.<br /> 
       <span class="notice">This is unqiue to a Location Device</span>]]> 
       </comment> 
       <frontend_type>text</frontend_type> 
       <sort_order>20</sort_order> 
       <show_in_default>1</show_in_default> 
       <show_in_website>1</show_in_website> 
       <show_in_store>1</show_in_store> 
      </TOKEN> 
      <LOCATION translate="label"> 
       <label>LocationID</label> 
       <comment> 
       <![CDATA[nChannel LocationID to send the order to.]]> 
       </comment> 
       <frontend_type>text</frontend_type> 
       <sort_order>30</sort_order> 
       <show_in_default>1</show_in_default> 
       <show_in_website>1</show_in_website> 
       <show_in_store>1</show_in_store> 
      </LOCATION> 
      <URL translate="label"> 
       <label>Environment</label> 
       <comment> 
       <![CDATA[nChannel api URL to send the order to.]]> 
       </comment> 
       <frontend_type>select</frontend_type> 
       <source_model>nChannel_Communicator/Source_nChannelEnvironment</source_model> 
       <sort_order>40</sort_order> 
       <show_in_default>1</show_in_default> 
       <show_in_website>1</show_in_website> 
       <show_in_store>1</show_in_store> 
      </URL> 
      </fields> 
     </Credentials> 
     </groups> 
    </Communicator> 
    </sections> 
</config> 

답변

0

이 질문을 제출하지 않았습니다. 그 문제는 대소 문자 구분으로 인한 것임을 알았습니다. 확장을위한 자습서에서이 점을 많이 언급하지 않았습니다.

Linux는 대소 문자를 구분하는 시스템이지만 Windows는 그렇지 않습니다. 내가 사용하고 있었다 :

/app/code/community/nChannel/Communicator. 

nChannel은 나의 회사 ID이다. Magento는 기본적으로 모듈 이름의 첫 글자를 대문자로 사용합니다. 이 문제는 Windows에서는 문제가 아니지만 Linux에서는 문제입니다. 따라서 폴더 구조를 다음과 같이 변경합니다.

모든 것이 올바르게 작동합니다. 나는 그것이 다른 이슈라고 생각하는 데 많은 시간을 보냈다!