CodeIgniter Forums
Modular Extensions - HMVC version 5.4 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Modular Extensions - HMVC version 5.4 (/showthread.php?tid=38057)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24


Modular Extensions - HMVC version 5.4 - El Forum - 06-14-2012

[eluser]pyweb1[/eluser]
thx a lot, i remove the TRUE in
Code:
$this->config->load('my_module/database', TRUE);

because otherwise i can't get it to work


Modular Extensions - HMVC version 5.4 - El Forum - 06-15-2012

[eluser]Unknown[/eluser]
hi guys, is it possible to load a second database? and if yes, id appreciate showing me how.
Code:
$second_db = $this->load->database('second_db_group', TRUE);
$result = $second_db->query("select * from table_name");
return $result->result();

but to no luck



Modular Extensions - HMVC version 5.4 - El Forum - 06-25-2012

[eluser]dmyers[/eluser]
Am I correct in asuming the Modular Extensions - HMVC version 5.4 doesn't auto load a autoload.php files in config folder? Yes I tried it so I assume it doesn't work or I did something wrong.

What I want to do is have it so I can drop in a module and have it autoload a helper,config,library (or any combo there of) without having to load a "sudo" controller.

How would this best be achieved?

DMyers


Modular Extensions - HMVC version 5.4 - El Forum - 06-26-2012

[eluser]wiredesignz[/eluser]
@dmyers, CodeIgniter is responsible for loading resources listed in "application/config/autoload.php" while Modular Extensions - HMVC loads items listed in the "{$module}/config/autoload.php" file at the time any respective module controllers are requested.

You could try prefixing the items in "application/config/autoload.php" with the module name.
Code:
$autoload['libraries'] = array('module/library');



Modular Extensions - HMVC version 5.4 - El Forum - 06-27-2012

[eluser]nguyenhuyit[/eluser]
hello everybody ! My name is Huy, i'm from Viet Nam
I have a problem with Modular Extensions
I tryed install and I get a errors
Code:
Fatal error: Access level to MX_Loader::_ci_get_component() must be public (as in class CI_Loader) in D:\xampp\htdocs\hmvc\application\third_party\MX\Loader.php on line 412

please help me


Modular Extensions - HMVC version 5.4 - El Forum - 06-27-2012

[eluser]wiredesignz[/eluser]
[quote author="nguyenhuyit" date="1340853424"]...please help me[/quote]

Upgrade to CodeIgniter v2.1


Modular Extensions - HMVC version 5.4 - El Forum - 06-27-2012

[eluser]nguyenhuyit[/eluser]
[quote author="wiredesignz" date="1340854525"]

Upgrade to CodeIgniter v2.1[/quote]

thank you!
I very happy because everybody very friendly
but version 2.1 have errors with library file upload
Code:
$config['allowed_types'] = "png|gif|jpeg|jpg";
and i get a errors
Code:
The filetype you are attempting to upload is not allowed.
I can't upload image types png or (jpg,jpeg,gif);





Modular Extensions - HMVC version 5.4 - El Forum - 07-10-2012

[eluser]CI flea[/eluser]
Is it possible to have views in a folder with the same name as the module?

I have a module "documents" and would like to have a view folder in the module also name documents (views/documents/), however at present I always get an error. If I change the name of the view folder to docs it works fine.



Modular Extensions - HMVC version 5.4 - El Forum - 07-10-2012

[eluser]kanjimaster[/eluser]
[quote author="CI flea" date="1341937654"]Is it possible to have views in a folder with the same name as the module?

I have a module "documents" and would like to have a view folder in the module also name documents (views/documents/), however at present I always get an error. If I change the name of the view folder to docs it works fine.
[/quote]
Yes, it's possible though the path would be "modules/documents/views" and not "views/documents".


Modular Extensions - HMVC version 5.4 - El Forum - 07-11-2012

[eluser]CI flea[/eluser]
Thanks for the reply, however the path I would like is modules/documents/views/documents/ (i just omitted modules/documents/ as i though it was understood), i.e. a view folder with the same name as the module?