zend-config

How to retrieve parameters from Zend application.ini file during the session? [duplicate]

Deadly 提交于 2019-12-04 01:59:35
This question already has answers here : Closed 7 years ago . Possible Duplicate: How could read application.ini on controller using zend framework application.ini is a configuration file in ZF. I have there some more settings than just those defaults that ZF manual writes about. But how may I retrieve those parameters from it from my action controllers for example? And where is it better to store this config during the session? The Bootstrap_Abstract class has getOptions() method which returns a simple php array of read application.ini file: $app = new Zend_Application(APPLICATION_ENV, '

Loading Modules Dynamically in Zend Framework 2

你。 提交于 2019-11-28 12:49:17
I have asked this question yesterday as well, but this one includes code. Issue My application have multiple modules and 2 types of user accounts, Some modules are loaded always which are present in application.config.php some of them are conditional i.e. some are loaded for user type A and some for user type B After going through documentations and questions on Stack Overflow, I understand some of ModuleManager functionalities and started implementing the logic that I though might work. Some how I figured out a way to load the modules that are not present in application.config.php [SUCCESS]

ZF2 - Injecting pages to navigation before controller is called

蹲街弑〆低调 提交于 2019-11-28 09:48:12
问题 I'm creating a dynamic Application in which the content is added through a CMS. Inside the CMS, I'm setting a db entry which states what module to use for each content page. NodeId, ParentNodeId, Name_de, Name_en, ModuleName, foreignkey_ContentLinks, in this table entries look as follows: 6, 1, Veranstaltung-21-02-2013, Event-21-02-2013, Events, 682 The entire tree should end up in my navigation (and perfectly also in my routing). I do not want to add it in some controller, because my

Loading Modules Dynamically in Zend Framework 2

这一生的挚爱 提交于 2019-11-27 07:15:23
问题 I have asked this question yesterday as well, but this one includes code. Issue My application have multiple modules and 2 types of user accounts, Some modules are loaded always which are present in application.config.php some of them are conditional i.e. some are loaded for user type A and some for user type B After going through documentations and questions on Stack Overflow, I understand some of ModuleManager functionalities and started implementing the logic that I though might work. Some