thx a lot, i remove the TRUE in
$this->config->load('my_module/database', TRUE);because otherwise i can’t get it to work
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
January 29, 2011 1:58am
Subscribe [99]#256 / Jun 14, 2012 7:04pm
thx a lot, i remove the TRUE in
$this->config->load('my_module/database', TRUE);because otherwise i can’t get it to work
#257 / Jun 15, 2012 9:42am
hi guys, is it possible to load a second database? and if yes, id appreciate showing me how.
$second_db = $this->load->database('second_db_group', TRUE);
$result = $second_db->query("select * from table_name");
return $result->result();but to no luck
#258 / Jun 25, 2012 10:32pm
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
#259 / Jun 26, 2012 5:01am
@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.
$autoload['libraries'] = array('module/library');#260 / Jun 27, 2012 11:17pm
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
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 412please help me
#261 / Jun 27, 2012 11:35pm
...please help me
Upgrade to CodeIgniter v2.1
#262 / Jun 28, 2012 12:13am
Upgrade to CodeIgniter v2.1
thank you!
I very happy because everybody very friendly
but version 2.1 have errors with library file upload
$config['allowed_types'] = "png|gif|jpeg|jpg";and i get a errors
The filetype you are attempting to upload is not allowed.I can’t upload image types png or (jpg,jpeg,gif);
#263 / Jul 10, 2012 12:27pm
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.
#264 / Jul 10, 2012 1:15pm
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.
Yes, it’s possible though the path would be “modules/documents/views” and not “views/documents”.
#265 / Jul 11, 2012 3:23am
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?
#266 / Jul 11, 2012 12:41pm
You can do that, you just need to prefix your views with “documents/” each time you load them.
#267 / Jul 12, 2012 3:21am
Thanks again, but I always load them with documents/. Just to clarify loading of documents from subfolders always work except when the subfolder has the same name as the parent module.
#268 / Jul 12, 2012 5:48am
Of course it works. But you must specify the module and sub-directory.
$this->load->view('documents/documents/whatever');#269 / Jul 12, 2012 5:54am
Thanks,
never thought of that. will try later.
#270 / Jul 26, 2012 6:37am
Hi. is this version compatible w/ the latest version of CodeIgniter? And what are the known bugs in using this? I’m planning to use this for my projects so it will be more organized than using just the MVC pattern.