Giter Site home page Giter Site logo

hex-ci / codeigniter-hmvc Goto Github PK

View Code? Open in Web Editor NEW
140.0 140.0 54.0 974 KB

Adding HMVC support to CodeIgniter. 为 CodeIgniter 增加 HMVC 支持。

Home Page: http://codeigniter.org.cn/forums/thread-1319-1-1.html

PHP 99.67% ApacheConf 0.01% HTML 0.32%
codeigniter hmvc php

codeigniter-hmvc's Introduction

codeigniter-hmvc's People

Contributors

ennnnny avatar hex-ci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codeigniter-hmvc's Issues

thank you

Hex 大俠 感激你的 CodeIgniter-HMVC 非常感謝 十分感謝

Suggestions on benefiting hacking

First of all, thank you for your efforts on this fancy HMVC stuff. Besides, I found something not so convinient when hacking.

First, the modules seem to have to be loaded with module() (in PHP) or /module/... (in uri). I do not think most programmers like this way. It would be better to load like normal, e.g. $this->load->model('mymodule/my_model') (in PHP) or /mymodule/my_ctrl/my_method (in uri). By detecting the presense of corresponding classes, PHP can tell whether the load is called for moduled or rooted contents.

Second, the module root path seem to be unconfigurable. It would be better to make the module root configurable.

I know this takes a long period to make these changes. I will also contribute to this project if I have spare time.

Thanks.

Internal function change in CodeIgniter

In new CodeIgniter, internal function EC_Loader::_ci_object_to_array() is changed to EC_Loader::_ci_prepare_view_vars().

To be compatible with newer version of CodeIgniter, it should be fixed in newer releases.

session支持有问题

在autoload中配置$autoload['libraries'] = array('encrypt','session');
报错如下:Unable to locate the specified class: Session.php

CI 版本:3.0.6

跟踪了一下代码,似乎是因为CI3中已经把Session.php放到了\libraries\Session\下,所以造成了找不到Session.php文件.

load module error,$model_path_index not definned

--- F:/temp/MY_Loader.php-rev4238.svn000.tmp.php	周三 11月 22 17:43:39 2017
+++ F:/temp/MY_Loader.php-rev4240.svn000.tmp.php	周五 12月  1 18:36:03 2017
@@ -400 +400 @@ class MY_Loader extends CI_Loader {
-            if ($model_path_index == 0)
+            if ( isset($model_path_index) && ($model_path_index == 0))

sqlsrv doesn't escape the queries properly

I'm creating a web app in CodeIgniter, and we must use an MS SQL server, and I realised that when I run the following query it throws me an error.

$this->db->insert("User",array('name'=>'CI Wonder'));

[Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near the keyword 'User'.

INSERT INTO User (name) VALUES ('CI Wonder')

If I put quotes inside of the quotes it works just fine :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.