Alanのブログの説明から、config.xmlにルーターを追加しました。
<?xml version="1.0"?>
<config>
<modules>
<Clean_Integration>
<version>1.0.0</version>
</Clean_Integration>
</modules>
<admin>
<routers>
<wellnesscoach_app_redirect>
<use>admin</use>
<args>
<module>Clean_Integration</module>
<frontName>appsync</frontName>
</args>
</wellnesscoach_app_redirect>
</routers>
</admin>
</config>
そして、ここでコントローラーを定義しますapp/code/local/Clean/Integration/Controllers/IndexController.php
:
<?php
die('checkpoint1');
class Clean_Integration_IndexController extends Mage_Adminhtml_Controller_Action {
public function indexAction() {
$this->_redirectUrl('/appointments/sync/backend/');
die('checkpoint2');
}
}
このURLを開こうとすると、フロントエンド側に移動して404をスローします。
magentoがこの管理ルーターを取得しない原因は何ですか?