Results 1 to 3 of 3

Thread: How to change database connection in a module ?

  1. #1
    New user
    Join Date
    06-11-09.
    Location
    Valence, France
    Posts
    21

    Default How to change database connection in a module ?

    Hi all,

    For a module, I need to change the database connection, not only the database, but also the server which is Microsoft SQL Server...

    My first idea is to dupplicate Database.php (eg: DatabaseMs.php) and change all $GLOBALS['TL_CONFIG']...
    After I may use :
    $this->import('DatabaseMs');
    $objDB = $this->DatabaseMs->prepare("SELECT id ...

    Is it a good idea ?

  2. #2
    New user
    Join Date
    06-11-09.
    Location
    Valence, France
    Posts
    21

    Default Re: How to change database connection in a module ?

    I answer myself : this is not a good idea

  3. #3
    New user Ling's Avatar
    Join Date
    06-30-09.
    Location
    Villingen, Germany
    Posts
    19

    Default Re: How to change database connection in a module ?

    What happened?

Bookmarks

Posting Permissions

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