Modular Extensions - HMVC version 5.4 |
[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
[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); but to no luck
[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
[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');
[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
[eluser]wiredesignz[/eluser]
[quote author="nguyenhuyit" date="1340853424"]...please help me[/quote] Upgrade to CodeIgniter v2.1
[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"; Code: The filetype you are attempting to upload is not allowed.
[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.
[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".
[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? |
Welcome Guest, Not a member yet? Register Sign In |