简体   繁体   English

用于三阶控制器的Codeigniter和HMVC控制器结构

[英]Codeigniter & HMVC Controller Structure for 3rd degree Controllers

I'm using HMVC extension on Codeigniter. 我在Codeigniter上使用HMVC扩展。 My problem is mostly about url structure and don't want to make routing. 我的问题主要是关于网址结构,不想进行路由。

HMVC works with: HMVC适用于:

/modules
  /manage
    /controllers
       /language
          language.php

on this URL: site_url/manage/language 在此URL上: site_url / manage / language

but not with this structure: 但不具有以下结构:

/modules
   /manage
      /controllers
         /language
            /listing.php

on this URL: site_url/manage/language/listing 在此URL上: site_url / manage / language / listing

Try with this: 试试这个:

/modules
   /manage
      /controllers
         /language.php
         /listing.php

If you need separate more the methods, you must create another module. 如果需要更多单独的方法,则必须创建另一个模块。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM