Modular Extensions - Version 4.3 |
[eluser]wiredesignz[/eluser]
modules_instance() returns the instance of the last controller loaded, but you can still use get_instance(). So, in a library you might use: Code: $ci =& modules_instance(); // or $ci =& get_instance(); Using `load->config` is via ME, while using `config->load` is via CI
[eluser]Armorfist[/eluser]
I'm sorry if this was answered before (I'm sure it was), but is there a way to make it support sub-folders in the controllers to access like this: Application/modules/test/controllers/admin/welcome.php: localhost/test/admin/welcome Thanks
[eluser]wiredesignz[/eluser]
Hi Armorfist, Sorry, but controllers in module subdirectories are not supported.
[eluser]simshaun[/eluser]
Personally, I don't have any need for subdirectories in the controllers folder at the moment, but is there any plans on making them available? Edit: I take that back. What I'd like to do is have something like "sub-modules". Folder structure like this /modules/admin/users/controllers /modules/admin/users/models /modules/admin/users/views ..etc /modules/admin/content/controllers /modules/calendar/controllers Access through url via: http://localhost/admin/users/ http://localhost/admin/content/ http://localhost/calendar/
[eluser]simshaun[/eluser]
As I haven't used this library (plan on toying with it tonight).. Is what I posted above possible?
[eluser]edwin87[/eluser]
Hello CI, I'm having the following problem with modular extensions. Code: Fatal error: Call to undefined function: _ci_load() in /***/application/libraries/Controller.php on line 407 I've just followed the install instructions on WIKI. Everything works but not when a call a module inside a module. I made 2 modules for testing. - Welcome - Test I want to show the module test on the welcome page. This is my code: Controller: welcome.php Code: <?php Controller test Code: <?php View welcome Code: <p><br />Page rendered in {elapsed_time} seconds</p> And the variabel test should show "This is a test" Please can somebody help me with this problem? In my wamp configuration it works but on my server not. I'm using PHP version 4.3.9 and also the HMVC php 4 version.
[eluser]fafworx[/eluser]
aloha, got the same problem like edwin87. any suggestions how to improve hmvc 4.2 at ci 1.7 on a php4 server? my appdir looks like: application controllers controller.php views view.php modules test controllers controller.php views view.php now i want to call test modules controller (and view) from the parent view via modules::run('test/controller'); hmvc goes to the correct controller but the view doesnt work: Fatal error: Call to undefined function: _ci_load() in /application/libraries/Controller.php on line 405 when i echo directly in the test module controller everything is fine. but this is not what i expect. please give some hints on it...
[eluser]edwin87[/eluser]
Please, is there someone who can fix this problem? I'm having this problem for a while now and can't fix this problem yet. What i've tried is change Code: $this->load =& $this; Code: $this->loader =& $this; When i do that, it looks like it does the job but when i try to do a database query in a model in a module it breaks. Also when i load a library it breaks. This is very anoying cause i really need this great script.
[eluser]wiredesignz[/eluser]
Hi edwin, The load issue you describe is not your problem. I will set up a PHP4 server to test and update version 4 to work with CI 1.7.1 Will post back soon. |
Welcome Guest, Not a member yet? Register Sign In |