我使用的是magento 1.9.2.2
我正在尝试使用退出的扩展。扩展在菜单和系统配置页面中显示正常显示,但是当我尝试访问扩展数据网格页面时,它将我重定向到前端,找不到404错误。
您可以查看扩展层次结构
adminhtml.xml
<config>
<acl>
<resources>
<admin>
<children>
<reward translate="title" module="reward">
<title>Reward Points</title>
<sort_order>100</sort_order>
<children>
<balance translate="title">
<title>Manage Balances</title>
<sort_order>10</sort_order>
</balance>
<affect translate="title">
<title>Can Spend Reward Points when Creating Orders</title>
<sort_order>30</sort_order>
</affect>
</children>
</reward>
<customer>
<children>
<rates translate="title">
<title>Reward Exchange Rates</title>
<sort_order>80</sort_order>
</rates>
</children>
</customer>
<system>
<children>
<config>
<children>
<reward translate="title" module="reward">
<title>Reward Points</title>
<sort_order>10</sort_order>
</reward>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
<menu>
<customer>
<children>
<reward translate="title" module="reward">
<title>Reward Exchange Rates</title>
<action>adminhtml/reward_rate</action>
<sort_order>100</sort_order>
<depends>
<module>Reward</module>
<config>reward/general/is_enabled</config>
</depends>
<resource>customer/rates</resource>
</reward>
</children>
</customer>
</menu>
的Config.xml
<config>
<modules>
<Reward>
<version>1.7.0.0.15</version>
</Reward>
</modules>
<global>
<models>
<reward>
<class>Reward_Model</class>
<resourceModel>reward_mysql4</resourceModel>
</reward>
<reward_mysql4>
<class>Reward_Model_Mysql4</class>
<entities>
<reward>
<table>reward</table>
</reward>
<reward_history>
<table>reward_history</table>
</reward_history>
<reward_rate>
<table>reward_rate</table>
</reward_rate>
<reward_salesrule>
<table>reward_salesrule</table>
</reward_salesrule>
</entities>
</reward_mysql4>
</models>
<resources>
<reward_setup>
<setup>
<module>Reward</module>
<class>Reward_Model_Mysql4_Setup</class>
</setup>
</reward_setup>
</resources>
<blocks>
<reward>
<class>Reward_Block</class>
</reward>
</blocks>
<helpers>
<reward>
<class>Reward_Helper</class>
</reward>
</helpers>
<template>
<email>
<reward_notification_balance_update_template translate="label" module="reward">
<label>Reward Points Balance Update</label>
<file>reward_balance_update.html</file>
<type>html</type>
</reward_notification_balance_update_template>
<reward_notification_expiry_warning_template translate="label" module="reward">
<label>Reward Points Expiry Warning</label>
<file>reward_expiry_warning.html</file>
<type>html</type>
</reward_notification_expiry_warning_template>
</email>
</template>
<sales>
<quote>
<totals>
<reward>
<class>reward/total_quote_reward</class>
<after>wee,discount,tax,tax_subtotal,grand_total</after>
<before>giftcardaccount,customerbalance</before>
<renderer>reward/checkout_total</renderer>
</reward>
</totals>
</quote>
<order_invoice>
<totals>
<reward>
<class>reward/total_invoice_reward</class>
</reward>
</totals>
</order_invoice>
<order_creditmemo>
<totals>
<reward>
<class>reward/total_creditmemo_reward</class>
</reward>
</totals>
</order_creditmemo>
</sales>
<fieldsets>
<sales_convert_quote_address>
<reward_points_balance><to_order>*</to_order></reward_points_balance>
<reward_currency_amount><to_order>*</to_order></reward_currency_amount>
<base_reward_currency_amount><to_order>*</to_order></base_reward_currency_amount>
</sales_convert_quote_address>
</fieldsets>
<events>
<newsletter_subscriber_save_commit_after>
<observers>
<reward>
<class>reward/observer</class>
<method>customerSubscribed</method>
</reward>
</observers>
</newsletter_subscriber_save_commit_after>
<paypal_prepare_line_items>
<observers>
<reward>
<class>reward/observer</class>
<method>addPaypalRewardItem</method>
</reward>
</observers>
</paypal_prepare_line_items>
<sales_order_save_after>
<observers>
<reward>
<class>reward/observer</class>
<method>orderCompleted</method>
</reward>
</observers>
</sales_order_save_after>
<sales_quote_collect_totals_before>
<observers>
<reward>
<class>reward/observer</class>
<method>quoteCollectTotalsBefore</method>
</reward>
</observers>
</sales_quote_collect_totals_before>
<sales_quote_merge_after>
<observers>
<reward>
<class>reward/observer</class>
<method>quoteMergeAfter</method>
</reward>
</observers>
</sales_quote_merge_after>
<sales_order_load_after>
<observers>
<reward>
<class>reward/observer</class>
<method>orderLoadAfter</method>
</reward>
</observers>
</sales_order_load_after>
<sales_order_invoice_register>
<observers>
<reward>
<class>reward/observer</class>
<method>invoiceRegister</method>
</reward>
</observers>
</sales_order_invoice_register>
<sales_order_invoice_save_commit_after>
<observers>
<reward>
<class>reward/observer</class>
<method>applyRewardSalesrulePoints</method>
</reward>
</observers>
</sales_order_invoice_save_commit_after>
<sales_order_creditmemo_refund>
<observers>
<reward>
<class>reward/observer</class>
<method>creditmemoRefund</method>
</reward>
</observers>
</sales_order_creditmemo_refund>
<sales_order_creditmemo_save_after>
<observers>
<reward>
<class>reward/observer</class>
<method>creditmemoSaveAfter</method>
</reward>
</observers>
</sales_order_creditmemo_save_after>
<sales_model_service_quote_submit_before>
<observers>
<reward>
<class>reward/observer</class>
<method>processOrderPlace</method>
</reward>
</observers>
</sales_model_service_quote_submit_before>
<sales_model_service_quote_submit_failure>
<observers>
<reward>
<class>reward/observer</class>
<method>revertRewardPoints</method>
</reward>
</observers>
</sales_model_service_quote_submit_failure>
<checkout_type_multishipping_create_orders_single>
<observers>
<reward>
<class>reward/observer</class>
<method>processOrderPlace</method>
</reward>
</observers>
</checkout_type_multishipping_create_orders_single>
<checkout_multishipping_refund_all>
<observers>
<reward>
<class>reward/observer</class>
<method>revertRewardPointsForAllOrders</method>
</reward>
</observers>
</checkout_multishipping_refund_all>
</events>
<pdf>
<totals>
<reward translate="title">
<title>Reward Points</title>
<source_field>reward_currency_amount</source_field>
<font_size>7</font_size>
<display_zero>0</display_zero>
<sort_order>650</sort_order>
<amount_prefix>-</amount_prefix>
</reward>
</totals>
</pdf>
</global>
<frontend>
<layout>
<updates>
<reward>
<file>reward.xml</file>
</reward>
</updates>
</layout>
<translate>
<modules>
<Reward>
<files>
<default>Reward.csv</default>
</files>
</Reward>
</modules>
</translate>
<routers>
<reward>
<use>standard</use>
<args>
<module>Reward</module>
<frontName>reward</frontName>
</args>
</reward>
</routers>
<events>
<customer_session_init>
<observers>
<reward>
<class>reward/observer</class>
<method>checkRates</method>
</reward>
</observers>
</customer_session_init>
<customer_save_after>
<observers>
<reward>
<class>reward/observer</class>
<method>customerRegister</method>
</reward>
</observers>
</customer_save_after>
<payment_method_is_active>
<observers>
<reward>
<class>reward/observer</class>
<method>preparePaymentMethod</method>
</reward>
</observers>
</payment_method_is_active>
<sales_quote_payment_import_data_before>
<observers>
<reward>
<class>reward/observer</class>
<method>paymentDataImport</method>
</reward>
</observers>
</sales_quote_payment_import_data_before>
<invitation_save_commit_after>
<observers>
<reward>
<class>reward/observer</class>
<method>invitationToCustomer</method>
</reward>
</observers>
</invitation_save_commit_after>
</events>
</frontend>
<default>
<reward>
<general>
<is_enabled>1</is_enabled>
<is_enabled_on_front>1</is_enabled_on_front>
<publish_history>1</publish_history>
<expiry_calculation>static</expiry_calculation>
<landing_page>reward-points</landing_page>
</general>
<notification>
<email_sender>general</email_sender>
<subscribe_by_default>1</subscribe_by_default>
<balance_update_template>reward_notification_balance_update_template</balance_update_template>
<expiry_warning_template>reward_notification_expiry_warning_template</expiry_warning_template>
</notification>
</reward>
<sales>
<totals_sort>
<reward>80</reward>
</totals_sort>
</sales>
</default>
<crontab>
<jobs>
<reward_balance_warning_notification>
<schedule><cron_expr>1 * * * *</cron_expr></schedule>
<run><model>reward/observer::scheduledBalanceExpireNotification</model></run>
</reward_balance_warning_notification>
<reward_expire_points>
<schedule><cron_expr>1 * * * *</cron_expr></schedule>
<run><model>reward/observer::scheduledPointsExpiration</model></run>
</reward_expire_points>
</jobs>
</crontab>
我正在使用的网址
http://127.0.0.1:8080/dev2/index.php/admin/reward_rate/index/key/b709 ....
这有什么问题
答案 0 :(得分:0)
启用“扩展程序的管理员路由兼容模式” 在菜单“系统=&gt;配置”下, 在“高级”选项卡下 在“管理员”部分下 在“安全”组下
或强>
<admin>
<routers>
<adminhtml> <!-- Mage_Adminhtml route name as per SUPEE-6788 -->
<args>
<modules>
<reward after="Mage_Adminhtml">Reward</reward>
</modules>
</args>
</adminhtml>
</routers>
</admin>
将控制器置于“Reward / controllers / Adminhtml”文件夹下。
然后网址为http://127.0.0.1:8080/dev2/index.php/admin/adminhtml_rate/index/key/b709 ...