Questions tagged [zend-config]

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

62 questions
0
votes
1 answer

Zend_Config_ini add a section and(or) key on fly?

I have an ini file for each client on my system, and add a new section and key to be created on the fly. I need some think like this: Current ini file: [section_a] key_a=1 key_b-2 And need to change this (with a php/zend) code, to…
JoeLoco
  • 2,116
  • 4
  • 31
  • 59
0
votes
1 answer

Zend Framework / Form Element is rendering as a text box rather than a dropdown box

I have the following in a config.ini file: (Zend_Form_Element) site_status.name = "site_status" site_status.type = "select" site_status.label = "Status" site_status.options.multiOptions.active.key =…
0
votes
1 answer

Zend console command wouldn't respond anything

I'm trying to use zend console and followed the documentation on their site. This is my code. module.config.php "router" => [ "routes" => [ "companies" => [ …
Ali Rasheed
  • 2,765
  • 2
  • 18
  • 31
0
votes
1 answer

ini-config for Zend_Cache_Frontend_Page

How to configure Zend_Cache_Frontend_Page in application.ini? I cannot define regexps (see example http://framework.zend.com/manual/en/zend.cache.frontends.html#zend.cache.frontends.page.examples. It should be something like…
Anton Egorov
  • 1,174
  • 1
  • 11
  • 21
0
votes
1 answer

How do i access the url variable defined in the Zend Framework config.ini

[dev] great.url="www.google.com" [test : dev] great.url="www.yahoo.com" [prod : test] great.url="www.aol.com" I have my own functions which return the Config of the environment that is used(DEV,TEST,OR PROD) . Now my problem is …
Someone
  • 10,405
  • 23
  • 67
  • 100
0
votes
1 answer

Zend Framework, Doctrine, Entities Setting Configuration on Module (Level) Configuration?

Reference: Heading "Entities Settings" on the link below https://github.com/doctrine/DoctrineORMModule#entities-settings tells to register configurations on module (merged) configuration. However in order to use doctrine from more than one modules,…
0
votes
2 answers

Using Zend_Config INI or XML with dynamic data

I have such an array for rendering TableGear: array( "database" => array( 'username' => $this->config->resources->db->params->username, 'password' => $this->config->resources->db->params->password, …
Rodrigo Souza
  • 7,162
  • 12
  • 41
  • 72
0
votes
2 answers

How to load more resources which are out of the application env?

I have a application.ini like this [production] phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1 includePaths.library = APPLICATION_PATH "/../library" bootstrap.path = APPLICATION_PATH "/Bootstrap.php" bootstrap.class =…
Rodrigo Souza
  • 7,162
  • 12
  • 41
  • 72
0
votes
1 answer

zend framework 2 autoload config in sub folder

On my [src/config/autoload], I have sub folders in them in which I want to autoload…
basagabi
  • 4,900
  • 6
  • 38
  • 84
0
votes
2 answers

Moving index.php out of application root in zend frame work

I am trying to change the path of index.php. I have a boot strap zend structure. So I created a new folder named newapp, its path is root path where our index.php lies. Then I copied the index.php to newapp so that I can load the application from…
0
votes
1 answer

zend resources.frontController.baseUrl don`t work

I need to put one zend project in a subdirectory of my root server. I want my project in: "http://blog.com/site" and not in "http://blog.com". Trying to do it, I`ve added in file: /application/configs/application.ini the line…
0
votes
1 answer

Getting an error on accessing an array from ini file to zend framework

In my config.ini file given customer.login.test = "test case" customer.login.support[] = "abel" customer.login.support[] = "justin" customer.login.support[] = "leon" I tried to access it in zend action helper function as $config =…
Justin John
  • 9,223
  • 14
  • 70
  • 129
0
votes
1 answer

hide the index controller from the URL for a single module

After creating a modular structure for a single module would prevent the url appears the name of the controller. everything works with the defaul site.con/foo/index/action/ I wish I could write as site.com/foo/action/ being IndexController the…
inge
  • 15
  • 3
0
votes
1 answer

Pros and Cons of building Zend_Form with Zend_Config

Has anyone out there built their Zend Form's with their configuration files? I'm thinking that this wouldn't be a bad idea since I could then have other applications/languages parse/create/modify a form (e.g. a zend form builder application.) I'm…
bstricks
  • 823
  • 8
  • 14
0
votes
1 answer

Zend keep front controller from blocking image requests

Anytime I use an tag in my Zend Framework application, no image is displayed. When I type the absolute path into the address bar, the front controller attempts to find an "images" controller. There HAS to be a way I can use
Brian Vanderbusch
  • 3,313
  • 5
  • 31
  • 43