Ejemplo n.º 1
0
<?php

require_once 'config.php';
require_once dirname(__FILE__) . '/../core/config/ProjectConfiguration.class.php';
$configuration = ProjectConfiguration::getApplicationConfiguration('qdPMExtended', 'batch', true);
sfContext::createInstance($configuration);
// Remove the following lines if you don't use the database layer
$databaseManager = new sfDatabaseManager($configuration);
$databaseManager->loadConfiguration();
// add code here
app::backup();
Ejemplo n.º 2
0
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
 public function executeDoBackup(sfWebRequest $request)
 {
     app::backup();
     $this->getUser()->setFlash('userNotices', t::__('Database saved.'));
     $this->redirect('tools/backup');
 }