Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: aXML vs TT2

by Logicus (Initiate)
on Oct 23, 2011 at 06:23 UTC ( [id://933157]=note: print w/replies, xml ) Need Help??


in reply to Re: aXML vs TT2
in thread aXML vs TT2

DSN information is stored in the site's private Conf.pm file, and if present automatically causes the system to use DBI and attempt to connect to the database.

Package Conf; our $conf = { 'sitetitle' => 'Acme Site', 'dsn' => 'DBI:mysql:forum:localhost:3306', 'dsn_username' => 'xxxx', 'dsn_password' => 'xxxxxx', '404' => '404', 'default_action' => 'default', 'doc_root' => '/var/www', 'debug' => 0 }; 1;

The values in the conf can also be accessed from within the document with the <conf> tag I.E:

<conf>sitetitle</conf> Output: ------- Acme Site

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://933157]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-26 04:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found