■modulesについて

・独立して動作させる

・HMVCを利用できる

・独立したルーティングを定義できる

 

■module化の手順

・config.phpの編集

/fuel/app/config/config.php を編集し、有効化する。

'module_paths' => array(
	APPPATH.'modules'.DS
),

・namespaceの設定

Controller や Modelに namespace の設定が必要になる。


■ルーティングの定義方法
/fuel/app/modules/(app名)/config/ にroutes.php を作成し、ルーティングを定義する。
ルーティングは通常の/fuel/app/config/routes.php とまったく同様。

19 Comments

  1. 안전놀이터 says:

    … [Trackback]

    […] Read More Info here on that Topic: dragon-ark.com/archives/736 […]

  2. http://www.ristrutturazioni-smart.it/component/k2/itemlist/user/1078654 says:

    … [Trackback]

    […] There you can find 1451 more Info to that Topic: dragon-ark.com/archives/736 […]

  3. exchange online plan 3 says:

    … [Trackback]

    […] Read More on on that Topic: dragon-ark.com/archives/736 […]

  4. it danışmanlık sözleşmesi says:

    … [Trackback]

    […] Read More on to that Topic: dragon-ark.com/archives/736 […]

  5. it danışmanlık ücretleri says:

    … [Trackback]

    […] Find More Information here on that Topic: dragon-ark.com/archives/736 […]

  6. Supercritical CO2 Extraction Machine says:

    … [Trackback]

    […] Find More here on that Topic: dragon-ark.com/archives/736 […]

  7. miel de socotra says:

    … [Trackback]

    […] Information to that Topic: dragon-ark.com/archives/736 […]

  8. block screenshot says:

    … [Trackback]

    […] Read More on that Topic: dragon-ark.com/archives/736 […]

  9. weed for sale says:

    … [Trackback]

    […] Find More Information here to that Topic: dragon-ark.com/archives/736 […]

  10. aplicativo android says:

    … [Trackback]

    […] Find More here on that Topic: dragon-ark.com/archives/736 […]

  11. molottora.ru says:

    molottora.ru

    【FuelPHP】【備忘録】modulesについて | Dragon-Ark

  12. mastinespanol.ru says:

    mastinespanol.ru

    【FuelPHP】【備忘録】modulesについて | Dragon-Ark

  13. www.peru-retail.com says:

    http://www.peru-retail.com

    【FuelPHP】【備忘録】modulesについて | Dragon-Ark

Leave a Reply