clear cache at end process

This commit is contained in:
Manuel Raynaud
2013-10-24 08:54:20 +02:00
parent 3f7300bdee
commit 54242eef43
3 changed files with 48 additions and 8 deletions

View File

@@ -93,8 +93,8 @@ $_SESSION['install']['step'] = $step;
<input id="email_contact" class="form-control" type="text" name="email_contact" placeholder="foo@bar.com" value="" required>
</div>
<div class="form-group">
<label for="site_name">Site name :</label>
<input id="site_name" class="form-control" type="text" name="site_name" placeholder="" value="" required>
<label for="site_name">Company name :</label>
<input id="site_name" class="form-control" type="text" name="company_name" placeholder="" value="" required>
</div>
<div class="clearfix">
<div class="control-btn">

View File

@@ -35,23 +35,38 @@ if($_SESSION['install']['step'] == 5) {
->setLastname('admin')
->save();
$config = new \Thelia\Model\Config();
$config->setName('contact_email')
->setValue($_POST['email_contact'])
->save();
;
\Thelia\Model\ConfigQuery::create()
->filterByName('contact_email')
->update(array('Value' => $_POST['email_contact']));
\Thelia\Model\ConfigQuery::create()
->filterByName('company_name')
->update(array('Value' => $_POST['company_name']));
}
//clean up cache directories
$fs = new \Symfony\Component\Filesystem\Filesystem();
$fs->remove(THELIA_ROOT . '/cache/prod');
$fs->remove(THELIA_ROOT . '/cache/dev');
$request = \Thelia\Core\HttpFoundation\Request::createFromGlobals();
$_SESSION['install']['step'] = $step;
?>
<div class="well">
<p class="lead text-center">
Thank you have installed Thelia
Thanks, you have installed Thelia
</p>
<p class="lead text-center">
Don't forget to delete the web/install directory.
</p>
<p class="lead text-center">
<a href="<?php echo $request->getSchemeAndHttpHost(); ?>/admin">Go to back office</a>
</p>
</div>
<?php include "footer.php"; ?>

View File

@@ -0,0 +1,25 @@
{
"title" : "Stats on September 2013",
"series" : [
{
"datas" : [[0,10.00],[1,200.00],[2,5.00],[3,2.75],[4,20.30],[5,14.09],[6,5],[7,23],[8,5],[9,42],[10,0],[11,4],[12,78],[13,75],[14,70],[15,65],[16,102],[17,50],[18,27],[19,35],[20,37],[21,29],[22,56],[23,52],[24,12],[25,6],[26,82],[27,32],[28,15],[29,50],[30,42]],
"color" : "#adadad"
},
{
"datas" : [[0,2],[1,5],[2,5],[3,7],[4,8],[5,9],[6,5],[7,2],[8,5],[9,4],[10,0],[11,4],[12,7],[13,7],[14,7],[15,6],[16,1],[17,5],[18,2],[19,3],[20,3],[21,2],[22,5],[23,5],[24,1],[25,6],[26,8],[27,3],[28,1],[29,5],[30,4]],
"color" : "#f39922"
},
{
"datas" : [[0,15],[1,20],[2,1],[3,1],[4,2],[5,3]],
"color" : "#5cb85c"
},
{
"datas" : [[0,45],[1,40],[2,41],[3,41],[4,42],[5,43]],
"color" : "#5bc0de"
},
{
"datas" : [[0,25],[1,20],[2,21],[3,21],[4,22],[5,23]],
"color" : "#d9534f"
}
]
}