This commit is contained in:
stubbfel
2013-06-27 10:55:07 +02:00
parent c03db748bc
commit 98b83dbfe3
15 changed files with 78 additions and 43 deletions

View File

@@ -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;