Questions tagged [zend-config]

Use this tag for questions about Zend\Config, a library designed to simplify application configuration.

62 questions
1
vote
1 answer

Zend framework 2 configuration uses

I would like know what's the difference between the uses of global.php and local.php files. In the Zend documentation, these files only register the database configuration, but I don't understand because the credentials are in a separated file…
josepmra
  • 617
  • 9
  • 25
1
vote
1 answer

How to add APC adapter to cache classmaps in Zend framework 2

I need to cache classmaps of each of my modules in my Zend framework 2 application using APC in opcode cache . Is there a work around for this . AFAIK in the application.config.php 'module_map_cache_enabled' => true, // The key used to…
Aravind.HU
  • 9,194
  • 5
  • 38
  • 50
1
vote
1 answer

Modular Way of Reading/Writing Configurations using Zend2

I want to have a bunch of settings in my module, and they should be writable from the App. Since they're application settings, I thought a table for it would be not very efficient (it would only have one row). I found the Zend module Zend\Config,…
Lanbo
  • 15,118
  • 16
  • 70
  • 147
1
vote
1 answer

How to use Zend\Config (application wide variables)

Main question is self explanatory, but I'll give some side examples: I'm having trouble figuring out databases, though it seems I can work out config with ServiceManager stuff I want to use constants for cookie names, so I can change them easily if…
Raekye
  • 5,081
  • 8
  • 49
  • 74
1
vote
2 answers

How to pass params from controller to Zend_Form?

I know this question is already answered here. But this doesnt work for me. The Form is generated by using the PluginLoader: $formClass = Zend_Registry::get('formloader')->load('Payment'); $form = new $formClass(array('someval' =>…
1
vote
3 answers

Using class constants in Zend_Config_Ini application.ini

I've got several constants defined in one of my classes and would like to use on of them in my application.ini, is this possible? logger.main.level = \My\App\Logger::WARNING This does not seem to work, it just parses it as a string
ChrisR
  • 14,370
  • 16
  • 70
  • 107
1
vote
0 answers

Config XML in Zend doesn't extends correctly

I have a problem within Zend_Config_Xml. I'm trying to extend the configuration but it didn't work. Right now, I have this code:
Cito
  • 1,659
  • 3
  • 22
  • 49
1
vote
0 answers

Zend_Translate | Routes reversed

I'm having trouble with own defined routes of my ZF1.12 Application. The switch of the language Parameters works, but the translation of the routes is reversed - for…
1
vote
2 answers

Add comments or formatting with Zend_Config_Writer

I've been playing around with Zend_Config_Writer, and although I can make it do what I want I find the lack of formatting a bit disturbing since: [production : general] ; ; Production site configuration data. ; locale …
Lobo
  • 566
  • 1
  • 7
  • 20
0
votes
1 answer

Zend_Config_Ini_Writer not working: Error 500

I have this code to create a config.ini file with Zend Framework but I always get a Internal Server Error (Error 500) from the webpage... true,…
Frederick Marcoux
  • 2,195
  • 1
  • 26
  • 57
0
votes
1 answer

Zend Form Element Row needs either an id or class set through Zend_Config_Ini

I have the following default decorators in a Zend_Config_Ini to set up my form: elementDecorators.viewHelper.decorator = "ViewHelper" elementDecorators.label.decorator = "Label" elementDecorators.errors.decorator =…
Aaron Murray
  • 1,920
  • 3
  • 22
  • 38
0
votes
1 answer

Zend Framework: Setting Default Decorators for form elements through Zend_Config_Ini

I have the following code in my forms.ini file, that is not working (form rendered is still using the default DtDd decorator). incident.elements.ticket_number.type = "text" incident.elements.ticket_number.options.label = "Ticket…
0
votes
1 answer

Invalid controller specified (adminlogin)

Code for indexAction() in AdminLoginController is: $form_object = new Application_Form_NewProfile(); $form_object->setAction('/adminlogin/index'); $form_object->setMethod('post'); $this->view->form =…
ryan
  • 333
  • 1
  • 15
  • 28
0
votes
1 answer

Zend_Navigation add dynamically parameter after question mark

I'm using Zend_Navigation' reading fron xml. I want to add to the menu created from it an additional parameter (got it from the request for the first page). e.g if the first page is mysite.com/pages/page1?Id=42 then clicking on the menu would add…
0
votes
1 answer

Zend config inheritence

I have these values in my application.ini [production] ; Database; resources.db.adapter = "pdo_mysql" resources.db.params.host = "localhost" resources.db.params.username = "user1" resources.db.params.password = "password1" …
Yasser1984
  • 2,401
  • 4
  • 32
  • 55