Use this tag for questions about Zend\Config, a library designed to simplify application configuration.
Questions tagged [zend-config]
62 questions
11
votes
1 answer
How to retrieve parameters from Zend application.ini file during the session?
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…

Green
- 28,742
- 61
- 158
- 247
5
votes
4 answers
Zend Config Ini Caching
My Zend app uses 3 ini config files, with a total of over 200 lines to parse, containing over 100 instructions. Are these files parsed every request? Some people say they are (like here and here). If so, is this not an efficiency issue?
The comments…

jackocnr
- 17,068
- 10
- 54
- 63
4
votes
3 answers
Why would loading a Zend_Application with a Zend_Config object produce different results from sending the file name?
I seem to be having an issue where loading my Zend_Application object with a Zend_Config object produces different results than loading the Zend_Application object with a filename instead. To illustrate my point, I have the two following methods of…

General Redneck
- 1,240
- 2
- 13
- 28
4
votes
2 answers
How to read an array in application.ini in Zend framework
How to read an array declared in the application.ini file using zend_config object.
eg 1 :
supported.prop[]="abc"
supported.prop[]="def"
when I say $config->supported->prop, it returns zend_config object, while I was expecting an array to be…

krishna
- 3,547
- 5
- 27
- 29
3
votes
1 answer
how to set zend form details in application.ini
Is there a way to set zend form details in the application config file (application.ini) in Zend Framework. I am looking for a way to move following details to config
A way to disable form decorators by default
set element Prefix Path
default…

Bryan
- 645
- 1
- 6
- 18
3
votes
4 answers
How to preserve application.ini paths using Zend_Config_Writer_Ini
I'm currently working on a build system in Phing that takes a Zend Framework project template and configures it according to Phing parameters. One problem that I've come across is when using Zend_Config_Writer_Ini.
My Phing task takes a…

t j
- 7,026
- 12
- 46
- 66
3
votes
2 answers
Loading Modules Dynamically in Zend Framework 2
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…

Haris Mehmood
- 854
- 4
- 15
- 26
3
votes
3 answers
Zend framework 2 accessing global config in model class
I have a model class which does not extend any core Zend module . This model was imported from my previous Zend framework 1 application . I am able to call its methods by converting it to namespace . The problem what I have is in reading global…

Aravind.HU
- 9,194
- 5
- 38
- 50
2
votes
2 answers
Merging two Zend_Config_Ini instances overwrites arrays defined in first object
Given two *.ini files:
one.ini
[production]
someArray[] = 'one'
someArray[] = 'two'
someArray[] = 'three'
[development : production]
two.ini
[production]
someArray[] = 'four'
[development : production]
Load both *.ini files as Zend_Config_Ini…

Mike Moore
- 7,228
- 10
- 42
- 63
2
votes
2 answers
accessing the getOptions() of Zend_Application_Bootstrap_Bootstrap
I'm using the default Zend_Application design pattern which loads a zend config ini file automatically in the application bootstrap and I need to ini file's variables across many models and controllers.
Right now, I'm solving it by settings the…

aporat
- 5,922
- 5
- 32
- 54
2
votes
2 answers
How does one specify a file path relative to the location of the config file when Zend_Config_Ini is in use?
I've got a common set of functionality I'd like to embed into a Zend_Application instance using the configs parameter inside of that app's Zend_Config instance. However, the slaved configuration file would like to be able to refer to things in a…

Billy ONeal
- 104,103
- 58
- 317
- 552
2
votes
3 answers
Setting datepicker element in Zend_config_Ini
I am trying to create form element using Zend_Config_Ini. Among other elements, I have a datepicker element (zendx_jquery_form_element_datepicker) which fails to work.
I have tried setting the element like so:
user.login.elements.Date.type =…

pi.
- 1,441
- 3
- 19
- 25
2
votes
1 answer
Storing data in Zend_Registry vs Zend_Cache
So far i have been using Bootstrap.php to load my application.ini config into Zend_Registry as well as an instance of logger. I was wondering if storing these inside Zend_Cache would be a better solution as these remain unchanged over lifespan of…

Shoaibi
- 859
- 2
- 11
- 23
2
votes
1 answer
Zend Framework: Error Reporting is shut down regardless of ini File
i often run into a problem when variables/attributes have the wrong type. The Problem is that it is hard to trace since my PHP (5.3) just crashes, does not put out an error or even write to the error log (*1). It just crashes.
I think accessing a…

Andresch Serj
- 35,217
- 15
- 59
- 101
2
votes
2 answers
ZF: Disable Resource Plugin in application.ini
How can I disable cache in the cli enviroment?
Reason being, the system user that executes the script is not allowed to write to the cache directory, thus the script is unable to execute.
In my application.ini I…

Phliplip
- 3,582
- 2
- 25
- 42