File path: dist/twist/Core/Helpers/Database.helper.php
Namespace: Twist\Core\Helpers
Extends: Base
connect
— Make the main connection to the database, automatically called if a custom connection is not required
Name | Description |
---|---|
[$strHost = null] | n/a |
[$strUsername = null] | n/a |
[$strPassword = null] | n/a |
[$strDatabaseName = null] | n/a |
[$strProtocol = null] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$strHost = null;
$strUsername = null;
$strPassword = null;
$strDatabaseName = null;
$strProtocol = null;
//Call the function connect with the example vars
Twist::Database() -> connect($strHost, $strUsername, $strPassword, $strDatabaseName, $strProtocol);