However I can't get it seem to work.. I'm getting the following errors:
Code: Select all
Notice: Indirect modification of overloaded property ControllerAccountTest::$data has no effect in /htdocs/catalog/controller/account/test.php on line 42
Code: Select all
<b>Notice</b>: Undefined variable: daag in <b>/htdocs/catalog/view/theme/default/template/account/test.tpl</b> on line <b>23</b>
Code: Select all
<div class='col-sm-10'>
<input type='text' name='daag' value='<?php echo $daag; ?>' placeholder='<?php echo $entry_daag; ?>' id='input-daag' class='form-control' />
<?php if ($error_daag) { ?>
<div class="text-danger"><?php echo $error_daag; ?></div>
<?php } ?>
</div>
Code: Select all
$data['entry_daag'] = $this->language->get('entry_daag');
if (isset($this->request->post['daag'])) {$this->data['daag'] = $this->request->post['daag'];} else {$this->data['daag'] = '';}
if (isset($this->error['daag'])) {
$data['error_daag'] = $this->error['daag'];
} else {
$data['error_daag'] = '';
}
Code: Select all
$_['entry_daag'] = 'Password';
$_['error_daag'] = 'Password must be between 4 and 20 characters!';