hmvc のセットアップがあり、正常に動作しています。
私はギャラリーモジュールを持っています。
ギャラリー モジュールは 3 つのコントローラーに分割され、その構造は次のとおりです。
/modules/gallery/
/modules/gallery/config/
/modules/gallery/helpers/
/modules/gallery/controllers/
/modules/gallery/controllers/gallery.php
/modules/gallery/controllers/galleries.php
/modules/gallery/controllers/images.php
/modules/gallery/models/
/modules/gallery/models/galleriesmodel.php
/modules/gallery/models/imagesmodel.php
/modules/gallery/views/dashboard.tpl
/modules/gallery/views/galleries/dashboard.tpl
/modules/gallery/views/images/dashboard.tpl
とにかく、私は自分のimages.php
コントローラー内に関数を持っていますlist_items
だから私はURL http://example.com/gallery/images/listをhttp://example.com/gallery/images/list_itemsにマップしたい
だから私は、その/modules/gallery/config/routes.php
中にルートを追加するだけだと思った。
しかし、ルートは含まれていないようです。
からのルート/application/config/routes.php
が含まれておりdie('loaded')
、モジュールに a を配置するとroutes.php
、スクリプトが強制終了されます。
しかし、実行中
print_r($this->router)
コントローラの 1 つから、モジュールからのルートが表示されませんroutes.php
。
何が起きてる?