$db = $this->Db->read(null, $id);
$path = dirname(dirname(__FILE__)).DS.'tmp'.DS.'output'.DS.'app';
$this->eXmasCake->createFolder($path);
-
+ $this->eXmasCake->copyConstants($path);
+
if (!$this->createDbScript($path,$db)) {
$this->Session->setFlash(SAVE_NG);
}