finish #64
This commit is contained in:
@@ -23,9 +23,11 @@ abstract class Api extends \Slim\Slim {
|
||||
/**
|
||||
* Default-Constructor
|
||||
*/
|
||||
public function __construct() {
|
||||
public function __construct() {
|
||||
$this->connect();
|
||||
parent::__construct();
|
||||
|
||||
// set content type td xml
|
||||
$this->contentType("Content-type: application/xml;charset=utf-8");
|
||||
}
|
||||
|
||||
@@ -33,6 +35,8 @@ abstract class Api extends \Slim\Slim {
|
||||
* Default-DeConstructor
|
||||
*/
|
||||
public function __destruct() {
|
||||
|
||||
// destroy the sqlManager
|
||||
$this->sqlManager->closeConnection();
|
||||
unset($this->sqlManager);
|
||||
$this->sqlManager = null;
|
||||
|
||||
Reference in New Issue
Block a user