CodeIgniter-HMVC | 为 CodeIgniter 增加 HMVC 支持 | Web Framework library

 by   hex-ci PHP Version: 3.1.2 License: No License

kandi X-RAY | CodeIgniter-HMVC Summary

kandi X-RAY | CodeIgniter-HMVC Summary

CodeIgniter-HMVC is a PHP library typically used in Server, Web Framework applications. CodeIgniter-HMVC has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

一直感觉 CodeIgniter 缺乏好的 HMVC 架构,而且我个人认为目前的几个 HMVC 第三方类库都不是很好,有的要修改 CI 的源代码,有的要引入新的语法,这都不是我喜欢的方式,所以我自己思考了一个方案,希望大家多多提出宝贵意见。这个 HMVC 的特点就是不修改 CI 源代码,不引入新的语法,完全是利用 CI 强大的扩展机制。. 目前的扩展方式是在 application 目录下增加 modules 目录,每个模块有自己的目录,并且模块可以有一级子目录,比如 application/modules/目录/模块名/.... 每个模块都有自己的 MVC 结构,像这样 application/modules/模块名/controllers,application/modules/模块名/models,application/modules/模块名/views 在视图中装载模块:. 这里也可以使用 URL 路由中的默认控制器,默认的方法是 index() 方法,和普通控制器保持一致。如果要传递参数:. 如果需要返回模块的结果而不想输出到屏幕,可以把第 3 个参数设置为 TRUE:. 如果需要从 URL 访问某个模块的某个方法,URL 规则是这样的:. 实际上 /module 后面的内容和前面传入 $this->load->module() 中的参数一致。. 如果要通过 URL 传递参数,则直接加在 URL 后面:. 另外,这里的 URI 可以使用路由规则,也就是说什么样的 URL 都可以,只要最后路由成符合上面的规则即可,比如要使用这样的 URL:.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              CodeIgniter-HMVC has a low active ecosystem.
              It has 142 star(s) with 57 fork(s). There are 31 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 0 open issues and 7 have been closed. On average issues are closed in 270 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of CodeIgniter-HMVC is 3.1.2

            kandi-Quality Quality

              CodeIgniter-HMVC has 0 bugs and 0 code smells.

            kandi-Security Security

              CodeIgniter-HMVC has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              CodeIgniter-HMVC code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              CodeIgniter-HMVC does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              CodeIgniter-HMVC releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.
              CodeIgniter-HMVC saves you 99748 person hours of effort in developing the same functionality from scratch.
              It has 107742 lines of code, 6181 functions and 883 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed CodeIgniter-HMVC and discovered the below as its top functions. This is intended to give you an instant insight into CodeIgniter-HMVC implemented functionality, and help decide if they suit your requirements.
            • Rap controller action
            • Moves the index .
            Get all kandi verified functions for this library.

            CodeIgniter-HMVC Key Features

            No Key Features are available at this moment for CodeIgniter-HMVC.

            CodeIgniter-HMVC Examples and Code Snippets

            No Code Snippets are available at this moment for CodeIgniter-HMVC.

            Community Discussions

            QUESTION

            Why i can't create a new project from github using composer?
            Asked 2019-Feb-13 at 08:55

            I have created a new repository on GitHub. I have used GitHub Desktop to commit all files. All is done. But I can't create a new project with Composer. Here is my repository: https://github.com/xttrust/CodeIgniter-HMVC-EXTRA

            I have tried to create a new project like this:

            ...

            ANSWER

            Answered 2019-Feb-13 at 08:39

            As Chris mentioned in a comment:

            Have you submitted it to Packagist?

            I had to merge it with Packagist, and it then worked.

            Source https://stackoverflow.com/questions/54652068

            QUESTION

            Managing URLs in a standard way in Codeigniter-HMVC project
            Asked 2018-Feb-22 at 07:50

            I have developed project in codeigniter-HMVC, now I want to manage urls in standard way.

            MY current URLs:

            ...

            ANSWER

            Answered 2018-Feb-22 at 07:06

            In ur route.php file u can redirect like this

            Source https://stackoverflow.com/questions/48921401

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install CodeIgniter-HMVC

            You can download it from GitHub.
            PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/hex-ci/CodeIgniter-HMVC.git

          • CLI

            gh repo clone hex-ci/CodeIgniter-HMVC

          • sshUrl

            git@github.com:hex-ci/CodeIgniter-HMVC.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link