lithium\data\source\database\adapter\MySql::connect()

public method

Connects to the database by constructing DSN string and creating a PDO intance using the parent class. Will set specific options on the connection as provided.

Returns

boolean

Returns true if a database connection could be established, otherwise false.

Source

	public function connect() {
		if (!$this->_config['dsn']) {
			$this->_config['dsn'] = $this->_dsn();
		}
		return parent::connect();
	}