만 구성 패널 다음이 system.xml을 통해 수행되며, ACL은 config.xml에 또는 adminhtml.xml를 통해 설명을 추가해야하는 경우
의 앱을/etc/모듈/Your_Extension.xml는 것
<config>
<modules>
<Your_Extension>
<active>true</active>
<codePool>local</codePool>
</Your_Extension>
</modules>
</config>
당신의 응용 프로그램/코드/지역/당신의/확장/등/config.xml 파일은
<?xml version="1.0"?>
<config>
<modules>
<Your_Extension>
<version>0.1.0</version>
</Your_Extension>
</modules>
<adminhtml>
<acl>
<resources>
<admin>
<children>
<system>
<children>
<config>
<children>
<extension>
<title>Extension section</title>
</extension>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
</adminhtml>
</config>
그리고 응용 프로그램/코드/지역/당신의/확장/등/system.xml을 것
<?xml version="1.0"?>
<config>
<sections>
<extension>
<label>extension</label>
<tab>sales</tab>
<frontend_type>text</frontend_type>
<sort_order>306</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<groups>
<general translate="label comment">
<comment><![CDATA[short description for one field extension]]></comment>
<label>General</label>
<frontend_type>text</frontend_type>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<fields>
<enable_extension>
<label>Activate extension</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment><![CDATA[Activation flag you can access later from code]]></comment>
</enable_extension>
</fields>
</general>
</groups>
</extension>
</sections>
</config>
admin 사이드에 하나의 config 필드가 있고 Your_Extension.xml, config.xml 및 system.xml 파일이 3 개만있는 새 확장을 정의하면됩니다.
없음 컨트롤러 이렇게 이제까지 무엇과 컨트롤러의 확인을 위해 확실히 필요없이 관리자가 ACL에 의해 처리되고이로 로그인 한 경우 필요하지
만 바보가 회사가 당신은 내 회사의 사항을 알고 있어야합니다 Xdebug는 –
같은 오픈 소스 디버거 너무 가난 비난 할 수 있습니다. –