Tôi đang phát triển mô-đun SMS tùy chỉnh trong Magento 1.6.Lỗi 404 trong cấu hình Tùy chỉnh Magento trong quản trị
Tôi đã thiết lập tệp system.xml
để quản lý các trường cấu hình tùy chỉnh có liên quan.
Mục menu hiển thị, nhưng khi tôi nhấp vào, trang lỗi 404 được hiển thị thay vì danh sách trường cấu hình dự kiến.
Bạn có thấy bất kỳ lỗi nào trong mã của mình không?
<config>
<tabs>
<mynew_tab translate="label">
<label>SMS Gateway Integration</label>
<sort_order>100</sort_order>
</mynew_tab>
</tabs>
<sections>
<smsconfig translate="label">
<label>SMS Gateway Integration</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>mynew_tab</tab>
<groups>
<sms_group translate="label">
<label>My Custom Configurations</label>
<comment>This is example of custom configuration.</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>
<sms_enabled translate="label tooltip comment">
<label>Is Enabled</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>0</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Enable this module.</comment>
</sms_enabled>
<sms_username translate="label tooltip comment">
<label>Sender Email</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>
<comment>Username of the SMS gateway.</comment>
</sms_username>
<sms_password translate="label tooltip comment">
<label>Sender Email</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>
<comment>Password of the SMS gateway.</comment>
</sms_password>
</fields>
</sms_group>
</groups>
</smsconfig>
</sections>
Sau khi yêu cầu ben, chúng tôi đặt các tập tin adminhtml.xml. Tôi đã đặt nội dung của tệp XML.
<config>
<acl>
<resources>
<admin>
<children>
<system>
<children>
<config>
<children>
<sms translate="title" module="sms">
<title>SMS Gateway Section</title>
</sms>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
Nhưng đến lỗi 404 đến ...
Để f Lỗi chính xác: Làm việc này cho tôi http://pradhab.blogspot.com/2013/03/magento-404-error.html Hãy thử điều này –
Vui lòng không cung cấp câu trả lời "chỉ liên kết" (điều gì sẽ xảy ra nếu trang đó trên trang từ xa bị gỡ xuống?). Nếu nội dung bên ngoài có liên quan, hãy thêm các bước/mã vào câu trả lời của bạn và bạn có thể trích dẫn nguồn dưới dạng ghi chú bổ sung. – newfurniturey