save website url in install process

This commit is contained in:
Manuel Raynaud
2013-10-24 19:45:51 +02:00
parent bba21b2a94
commit 72f9cbb305
4 changed files with 11 additions and 2 deletions

View File

@@ -96,6 +96,10 @@ $_SESSION['install']['step'] = $step;
<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="form-group">
<label for="site_name">website url :</label>
<input id="site_name" class="form-control" type="text" name="url_site" placeholder="" value="http://<?php echo $_SERVER['SERVER_NAME']; ?>" required>
</div>
<div class="clearfix">
<div class="control-btn">
<button type="submit" class="pull-right btn btn-default btn-primary">Continue</button>

View File

@@ -43,6 +43,10 @@ if($_SESSION['install']['step'] == 5) {
\Thelia\Model\ConfigQuery::create()
->filterByName('company_name')
->update(array('Value' => $_POST['company_name']));
\Thelia\Model\ConfigQuery::create()
->filterByName('url_site')
->update(array('Value' => $_POST['url_site']));
}
//clean up cache directories