This post refers to DotKernel 1, based on Zend Framework 1.
If you are looking for DotKernel 3 related posts, go here.

From time to time, it may be a good idea to have a persistent connection to database.

The place where it should be added that new configuration option is application.ini ( DotKernel approach as an example)

Do not try something like below, will not work:

database.params.options.PDO::ATTR_PERSISTENT = TRUE

 

Instead , use the below line

database.params.persistent = TRUE

Looking for PHP, Laminas or Mezzio Support?

As part of the Laminas Commercial Vendor Program, Apidemia offers expert technical support and services for:

  • Migration from Laminas MVC to Mezzio or Dotkernel Headless Platform.
  • Migration from legacy Laminas API Tools (formerly Apigility) to Dotkernel API
  • Mezzio and Laminas Consulting and Technical Audit
  • Modernising Legacy Applications
  • One Comment

    1. How to Set a Persistent Connection to Database with Zend … - EtondeGroup Blog of Web Applications | EtondeGroup Blog of Web Applications

      […] rest is here: How to Set a Persistent Connection to Database with Zend … Bookmark on Delicious Digg this post Recommend on Facebook share via Reddit Share with Stumblers […]

    Leave a Reply to How to Set a Persistent Connection to Database with Zend … - EtondeGroup Blog of Web Applications | EtondeGroup Blog of Web Applications Cancel Reply

    Your email address will not be published. Required fields are marked *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>