Commits

Rodrigo Zadra Armond  committed 6f03464

Better usage example.

  • Participants
  • Parent commits 445064a

Comments (0)

Files changed (1)

  * Creates DB dump.
  *
  * Usage:
+ *
+ * To download the generated sql file:
+ *
+ * <pre>
+ *  Yii::import('ext.dumpDB.dumpDB');
+ *  $dumper = new dumpDB();
+ *  $dumper->getDump();
+ * </pre>
+ *
+ * To show the generated sql:
+ *
  * <pre>
- *      Yii::import('ext.dumpDB.dumpDB');
- *           $dumper = new dbBackup();
- *           $dumper->getDump();
+ *  Yii::import('ext.dumpDB.dumpDB');
+ *  $dumper = new dumpDB();
+ *  echo $dumper->getDump(false);
  * </pre>
+ *
+ *
+ *
+ *
+ *
+ 
  */
 class dumpDB
 {
                     header("Pragma: no-cache");
                     header("Content-type:application/sql");
                     header("Content-Disposition:attachment;filename=downloaded.sql");
+                    echo $result; exit;
                 } 
                 return $result;
 	}