zend-application

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

倾然丶 夕夏残阳落幕 提交于 2020-01-03 16:44:15
问题 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. If the user is not logged in, I'd like to redirect them to the login page, and have the login page redirect them to do whatever action it was they were originally doing, running the access check again. If they don't have permission, I want to

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

落花浮王杯 提交于 2020-01-03 16:43:24
问题 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. If the user is not logged in, I'd like to redirect them to the login page, and have the login page redirect them to do whatever action it was they were originally doing, running the access check again. If they don't have permission, I want to

ZF: Disable Resource Plugin in application.ini

徘徊边缘 提交于 2020-01-02 16:18:49
问题 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 have [production] resources.cachemanager.database.frontend.name = Core resources.cachemanager.database.frontend.customFrontendNaming = false resources.cachemanager.database.frontend.options.lifetime = 7200 resources.cachemanager.database.frontend.options.automatic_serialization = true

ZF: Disable Resource Plugin in application.ini

折月煮酒 提交于 2019-12-06 10:39:51
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 have [production] resources.cachemanager.database.frontend.name = Core resources.cachemanager.database.frontend.customFrontendNaming = false resources.cachemanager.database.frontend.options.lifetime = 7200 resources.cachemanager.database.frontend.options.automatic_serialization = true resources.cachemanager.database.backend.name = File resources.cachemanager.database.backend

Accessing the Zend Application Bootstrap _init Functions After Bootstrapping

只谈情不闲聊 提交于 2019-12-01 08:27:47
问题 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 Zend_Db_Table_Abstract failing to save table metadata to metadata cache. Failed saving metadata to metadataCache I initialize the metadata cache during bootstrap. Rather than copying my code from the bootstrap and executing after forking, I thought that it might be

Zend_Log in application.ini

时光怂恿深爱的人放手 提交于 2019-11-29 15:41:58
问题 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 回答1: Good question. I can't find a way to instantiate the Zend_Log_Writer_Db from a bootstrap config. The writer class requires a Zend_Db_Adapter object. It doesn't accept a string. The ZF project needs to develop this use case further. They don't even have any unit tests for Zend_Application