Questions tagged [zend-application]

40 questions
10
votes
4 answers

Persisting Zend Framework ACL Lists

Does the Zend Framework (or applications built using Zend_Application) provide any mechanism for persisting ACL lists, or is that detail left to the individual system/application developer? Most of the examples I see online involve setting up your…
Alana Storm
  • 164,128
  • 91
  • 395
  • 599
5
votes
6 answers

How to setup a Zend_Application with an application.ini and a user.ini

I am using Zend_Application and it does not feel right that I am mixing in my application.ini both application and user configuration. What I mean with this is the following. For example, my application needs some library classes in the namespace…
Peter Smit
  • 27,696
  • 33
  • 111
  • 170
5
votes
4 answers

Zend_Log in application.ini

is there any example how to setup an instance of zend log from application.ini? I have only found an example for logging to an file, but i want to log into an SQLITE database table? Zend Log resource
opHASnoNAME
  • 20,224
  • 26
  • 98
  • 143
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
4 answers

What's the best way to handle something like a login page on top of Zend Framework? (And why does my implementation explode?)

EDIT: Sorry for the large amount of code here; I'm not sure exactly what's going on so I included more to be safe. I've currently got a login page which farms out to a central authentication service. I'd like to do a permissions check on the user.…
Billy ONeal
  • 104,103
  • 58
  • 317
  • 552
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
1 answer

Zend autoloading configurations in bootstrap vs application.ini

Given: 1. bootstrap: $autoloader = Zend_Loader_Autoloader::getInstance();// Zend_Loader_Autoloader $autoloader->registerNamespace('Ntk_'); equals to application.ini: autoloaderNamespaces[] = "Ntk_" 2. bootstrap: $pluginLoader =…
2
votes
4 answers

Accessing the Zend Application Bootstrap _init Functions After Bootstrapping

I have written a Zend Framework based cron service for parallel tasks, and ran into issues with the child threads sharing resources with the parent. I solved the database connection issue, but I'm now seeing periodic issues with…
Sonny
  • 8,204
  • 7
  • 63
  • 134
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
2
votes
1 answer

Zend framework. how to pass options to custom front controller plugin?

I have custom front controller plugin that takes some options. At this time I load it (plugin) in application.ini file like this: resources.frontController.plugins.DynamicLayout = "My_Controller_Plugin_DynamicLayout" At this time I just have…
Stann
  • 13,518
  • 19
  • 65
  • 73
2
votes
1 answer

How to set up ErrorHadler via application.ini?

I set up default errorHandler in Bootstrap.php this way: public function _initErrorHandler() { $frontController = Zend_Controller_Front::getInstance(); $plugin = new Zend_Controller_Plugin_ErrorHandler( array( 'module' =>…
takeshin
  • 49,108
  • 32
  • 120
  • 164
2
votes
2 answers

Zend Framework: Autoloading module resources in config.ini?

Is it possible, to configure the following behaviour in application.ini? _resourceLoader = new…
2
votes
1 answer

Running a Zend_Application from the command line?

Is there a blessed way to run a Zend_Application from the command line? That is, I want to run a shell script that invokes a Zend_Application, loads its configuration, and then calls a specific controller action OR run an arbitrary command line…
Alana Storm
  • 164,128
  • 91
  • 395
  • 599
2
votes
0 answers

Zend Circular Dependency Issue

I have a method within my bootstrap that sets up the caches for the application: protected function _initSetCaches() { $this->bootstrap(array('Db','CacheManager')); Zend_Db_Table_Abstract::setDefaultMetadataCache(Master::cache('database')); …
1
vote
2 answers

Database Connection in Zend Framework

I am new to ZF. I have coded my application.ini here it is: [development] includePaths.library = APPLICATION_PATH "/../library" bootstrap.path = APPLICATION_PATH "/Bootstrap.php" bootstrap.class = "Bootstrap" appnamespace =…
1
2 3