php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "Zend_Registry"

Is it best practice to use Zend_Registry to make the DB adapter globally available in ZendFramework?

Using Zend_Registry to make the DB adapter globally available in Zend Framework is not considered a best practice. It is recommended to use Dependency...

Is passing the TablePrefix through Zend_Registry the best method for the entire application?

Passing the TablePrefix through Zend_Registry may not be the best method for the entire application as it tightly couples the configuration with the Z...

How does setting the Zend_Navigation in Zend_Registry resolve the issue with the Navigation-View-Helper in PHP?

The issue with the Navigation-View-Helper in PHP arises when the navigation structure needs to be accessed in multiple parts of the application. Setti...

Are there any potential pitfalls or drawbacks to fetching the DB adapter from Zend_Registry in every model in ZendFramework?

Fetching the DB adapter from Zend_Registry in every model can lead to tight coupling and make it difficult to unit test the models in isolation. To so...

Is extending Zend_Db_Table to read the Prefix from the Registry a better approach than using Zend_Registry directly?

Extending Zend_Db_Table to read the Prefix from the Registry can be a better approach as it encapsulates the logic within the class itself, making it...

Showing 1 to 5 of 6 results

‹ 1 2 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.