php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "model persistence"

Is it appropriate to use the Symfony Service Container for automatically passing a database connection to model classes?

When working with Symfony, it is appropriate to use the Symfony Service Container to automatically pass a database connection to model classes. This a...

What are some best practices for programming to prevent issues with variable persistence in PHP forms?

Variable persistence in PHP forms can lead to issues such as outdated or incorrect data being displayed when a form is submitted multiple times. To pr...

What are the common pitfalls to avoid when dealing with variable persistence in PHP scripts?

Common pitfalls to avoid when dealing with variable persistence in PHP scripts include not properly initializing variables, relying on global scope ex...

How can PHP developers ensure data persistence when navigating between pages without using form action?

PHP developers can ensure data persistence when navigating between pages without using form action by utilizing sessions. They can store the data in s...

In which layer of the MVC model should a script that updates a database with data from an external source be placed, especially when it is executed via a cron job?

When updating a database with data from an external source via a cron job in an MVC model, the script should ideally be placed in the Model layer. Thi...

Showing 61 to 65 of 661 results

‹ 1 2 ... 10 11 12 13 14 15 16 ... 132 133 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.