Özel modülüm için bazı yapılandırma ayarlarını uygulamaya çalışıyorum. Sol gezinme çubuğuna bir sekme ve bölüm eklemeyi başardım. Ama bir bölüm açmak istediğimde daha fazla bilgi olmadan bir 404 hata sayfası alıyorum.Yapılandırma paneline erişmeye çalışırken Magento system.xml ve 404 hatası
Şimdiye kadar, çalışmasını sağlamak için her şeyi denedim. Blogları, örnekleri vb. Okuyordum ancak hatayı bulamıyorum. Belki biriniz yanlış yaptığımı açıklayabilir.
Benim adminhtml.xml
:
<?xml version="1.0" ?>
<config>
<resources>
<admin>
<children>
<system>
<children>
<config>
<children>
<tempest_section translate="title" module="Tempest">
<title>Tempest</title>
</tempest_section>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</config>
Benim config.xml
:
<?xml version="1.0"?>
<config>
<modules>
<Polyvision_Tempest>
<version>0.1.0</version>
</Polyvision_Tempest>
</modules>
<global>
<helpers>
<Tempest>
<class>Polyvision_Tempest_Helper</class>
</Tempest>
</helpers>
</global>
<admin>
<routers>
<adminhtml>
<args>
<modules>
<tempest before="Mage_Adminhtml">Polyvision_Tempest_Adminhtml</tempest>
</modules>
</args>
</adminhtml>
</routers>
</admin>
<adminhtml>
<menu>
<menu1 translate="title" module="Tempest">
<title>polyvision</title>
<sort_order>60</sort_order>
<children>
<menuitem1 module="Tempest">
<title>Tempest - Export</title>
<action>adminhtml/tempest_main</action>
</menuitem1>
</children>
</menu1>
</menu>
</adminhtml>
<default>
<tempest>
<settings>
<export_directory>/tmp/</export_directory>
</settings>
</tempest>
</default>
</config>
Benim system.xml
:
<?xml version="1.0" ?>
<config>
<tabs>
<polyvision module="Tempest" translate="label">
<label>polyvision</label>
<sort_order>100</sort_order>
</polyvision>
</tabs>
<sections>
<tempest_section module="Tempest" translate="label">
<label>Tempest-Einstellungen</label>
<sort_order>200</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<tab>polyvision</tab>
<groups>
<settings translate="label">
<label>Settings</label>
<comment></comment>
<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>
<fields>
<export_directory translate="label tooltip comment">
<label>My Custom Field</label>
<comment>Some comment about my field</comment>
<tooltip>Field ToolTip</tooltip>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<frontend_input>text</frontend_input>
<source_model>adminhtml/system_config_text</source_model>
</export_directory>
</fields>
</settings>
</groups>
</tempest_section>
</sections>
Eh, modülümün kendisi sorunsuz çalışıyor. Yalnızca yönetici ayarları çalışmıyor:/
Thanx! Bu sitedeki örnekler, kitabımda ve bloglarda vb. Bulduğum tüm diğer içeriklerden daha nettir. – ghostrifle
Teşekkürler Alan./rantmode Bu f * cking inanılmaz bir oturum açmak ve bu ** herhangi bir yerde yazılmış değil **. Bu basit sebepten dolayı kafamı beş saatliğine vuruyordum. Ve daha da kötüsü nedir ki, eğer yanlışlıkla oturumu kapatmış olsaydım işe yaramazdı ve nedenini bilmiyorum .../endrantmode Her zamanki gibi Magento problemlerine geri dön :) –
ACL rolleri oluşturmak zorunda değildim, ama ben sadece rm -fr var/cache/* var/session/* 'yaptım ve işe yaradı. Magento ... – bensnider