Hi, I’m writting a internal application (a special shop for wholesalers). For this shop I created an own module. Now I need a Solr search. This search could be more general and should be part of the shop. So I created a new Solr module with a service. In my shop (mod) I call the service like this:
ee('solr:Solr')->setQueryString($QueryString);
This is running fine, too.
BUT: I need to configure the Solr host. The module should be a general module, so I’m a “good guy” and do a clean configuration. I’ve created the solr/config folder with solr.php.
Calling in the service construct (or somewhere else slor.mod or setup)
ee()->config->load('solr');
doesn’t work.
Reason is function &get;_config($replace = array()) in boot.common.php, which knows only the path to the main config and the config of the calling shop module.
What is wrong? Is it a problem of my architecture?
Thanks for help
Matthias
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.