Technote Details :: Date formats in PHAkt 3.0

Issue

I have a completed application that uses PHAkt 2 and the date locales it provided in the connection. Now, if I upgrade to PHAkt 3.0, date formatting is no longer available. I want to create new pages using MX Kollection3, but PHAkt 2 is not compatible.

Reason

This happens because the date formatting has been removed entirely from PHAkt 3.0. If you want to use MX Kollection 3 and PHAkt 3 on the same site with pages that used the date formatting provided by PHAkt2, you cannot upgrade the PHAkt version directly, as this would cause the older pages not to work anymore.

Solution

To be able to create pages using MX Kollection and PHAkt 3, and in the same time to have the older pages work, you have to follow the procedure explained below:

  1. Before installing PHAkt 3, rename the adodb folder from your site (the one having date locales) to something else (e.g. adodb_2_8).
  2. Now you should edit the file from the Connections folder used into all of your pages (not with the Dreamweaver interfaces but with a text editor).  Into the source code of your connection file you should have the following lines (around line 52): 

    if (!defined('CONN_DIR')) define('CONN_DIR',dirname(__FILE__));
     require_once(CONN_DIR."/../adodb/adodb.inc.php");
     ADOLoadCode($MM_iakt_DBTYPE);

  3. Now change it to this code:

    if (!defined('CONN_DIR')) define('CONN_DIR',dirname(__FILE__));
    require_once(CONN_DIR."/../adodb_2_8/adodb.inc.php");
    ADOLoadCode($MM_iakt_DBTYPE);

  4. If you have multiple connections that used date formatting in PHAkt 2, you must edit all of them, and make them point towards the new name of the adodb folder.
  5. For all pages created using MX Kollection 3, you should create a new Dreamweaver database connection that will point to the same database as the PHAkt 2 connection.

Home > Support > Knowledge Base > Technote Details
Search the Knowledge Base
© Adobe Systems Romania. All rights reserved.