A few noob questions about templates
Posted: Wed Nov 14, 2012 4:36 am
I'm learning how opencart works. Here's my point of entry: home.tpl:
Its intuitive that these variables match the other .tpl files in the theme::common directory. However, where are those variables populated? How does the program know to use 'header.tpl' for $header? Likewise, in 'header.tpl' we have the line:
I can see from using the program that this echoes the currency choices, but where is $currency set? Where can I learn a list of available display variables so that I can design custom templates?
Thans,
Anna
Code: Select all
<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
<h1 style="display: none;"><?php echo $heading_title; ?></h1>
<?php echo $content_bottom; ?></div>
<?php echo $footer; ?>
Code: Select all
<?php echo $currency; ?>
Thans,
Anna