Post by fbjernebo » Sun Jun 12, 2011 11:01 pm

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?

New member

Posts

Joined
Sun Jun 12, 2011 6:19 am

Post by Xsecrets » Sun Jun 12, 2011 11:03 pm

yes you need to add

Code: Select all

$this->data['text_1'] = $this->language->get('text_1'); 
to your controller file.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US
Who is online

Users browsing this forum: No registered users and 33 guests