Location: PHPKode > projects > DIY Blog > diy-blog/lib/propel/generator/templates/sql/db-init/Control.tpl
<?php    
    // build db names array    
    $databaseNames = array();
    foreach($dataModels as $dm) {
        foreach($dm->getDatabases() as $db) {
            $databaseNames[] = $db->getName();
        }
    }
    $databaseNames = array_unique($databaseNames);
    
    $generator->put("databaseNames", $databaseNames);
	$generator->display("sql/db-init/$targetDatabase/createdb.tpl");
?>
Return current item: DIY Blog