If I add text,
like this in the template:
<?php echo $text_1; ?>
and this in my language files:
$_['text_1'] = 'Currency';
wehy do I get this error then:
Undefined variable: text_1 in <b>/nfs/c03/h04/mnt/85977/domains/5thupperstreet.com/html/catalog/view/theme/default/template/common/header.tpl</b> on line <b>109</b> was not found on this server.
Should I add it somewhere else too?
yes you need to add
to your controller file.
Code: Select all
$this->data['text_1'] = $this->language->get('text_1');
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Who is online
Users browsing this forum: No registered users and 33 guests