hex-ci / codeigniter-hmvc Goto Github PK
View Code? Open in Web Editor NEWAdding HMVC support to CodeIgniter. 为 CodeIgniter 增加 HMVC 支持。
Home Page: http://codeigniter.org.cn/forums/thread-1319-1-1.html
Adding HMVC support to CodeIgniter. 为 CodeIgniter 增加 HMVC 支持。
Home Page: http://codeigniter.org.cn/forums/thread-1319-1-1.html
Hex 大俠 感激你的 CodeIgniter-HMVC 非常感謝 十分感謝
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.
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.
在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文件.
--- 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))
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 :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.