Results 1 to 2 of 2

Thread: Zend DB Adapter

  1. #1
    gregl83 is offline Junior Member
    Join Date
    Jul 2010

    Default Zend DB Adapter

    Hey all,

    Thanks for the help so far. I have been writing Zend apps for awhile and have seen the database instantiated different ways. Recently, I switched to version 1.10 from like 1.06. Supposedly I should now be able to have zend automatically register the default adapter that is listed in the application.ini file.

    using the following code:
    resources.db.adapter = "PDO_MYSQL" = "localhost"
    resources.db.params.dbname = "yourscene"
    resources.db.params.username = "root"
    resources.db.params.password = ""
    resources.db.params.isDefaultTableAdapter = true
    from here I should be able to grab the adapter object like so
    $db = Zend_Db_Table::getDefaultAdapter();
    for the life of me i can't get this code to run. i get the error that db is not an object when trying to query my database.

    does it matter that the DB was NOT created using the cmd line tool??? I already have a mysql database setup... i didn't think that would make a difference...

  2. #2
    gregl83 is offline Junior Member
    Join Date
    Jul 2010


    btw, i've tried:

    resources.db.isDefaultTableAdapter = true
    as well... :/

Similar Threads

  1. Zend Mysqli Adapter and saving multiple resources
    By fleckz in forum General Q&A on Zend Framework
    Replies: 0
    Last Post: 01-11-2010, 08:09 PM
  2. db adapter change?
    By altergothen in forum Databases
    Replies: 0
    Last Post: 05-01-2009, 05:24 PM
  3. Zend_Translate tmx adapter
    By Nicolas Milesi in forum Internationalization (i18n) & Localization (l10n)
    Replies: 1
    Last Post: 03-16-2009, 03:23 PM
  4. Db adapter for Zend_Translate
    By Cristian in forum Internationalization (i18n) & Localization (l10n)
    Replies: 2
    Last Post: 02-16-2009, 06:46 AM
  5. [Oracle] What's the best Adapter?
    By Dead_Thinker in forum Databases
    Replies: 8
    Last Post: 06-16-2008, 07:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts