In admin/controller/setting/setting.php I have the following code
Code: Select all
if (isset($this->request->post['config_footer_description'])) {
$data['config_footer_description'] = $this->request->post['config_footer_description'];
} else {
$data['config_footer_description'] = $this->config->get('config_footer_description');
}
Code: Select all
$_['entry_footer_description'] = 'Footer Description';
Code: Select all
<div class="form-group">
<label class="col-sm-2 control-label" for="input-footer-description">{{ entry_footer_description }}</label>
<div class="col-sm-10">
<textarea name="config_footer_description" rows="5" placeholder="{{ entry_footer_description }}" id="input-footer-description" class="form-control">{{ config_footer_description }}</textarea>
</div>
</div>
Code: Select all
$this->config->get('config_footer_description');
Code: Select all
<p>
{{ footer_description }}
</p>