title: How to display Category images in OpenCart
body: <p>My categories.php module in controller:</p>
  
  <pre><code>        $this-&gt;data['categories'][] = array(
              'category_id'       =&gt; $category['category_id'],
              'name'              =&gt; $category['name'],
              'image'             =&gt; $category['image'],
              'children'          =&gt; $children_data,              
              'href'              =&gt; $this-&gt;url-&gt;link('product/category', 'path=' . $category['category_id'])
          );  
  </code></pre>
  
  <p>My categories.tpl in /products/ (View)</p>
  
  <pre><code>  &lt;?php foreach ($categories as $category) { ?&gt;
    &lt;li&gt;&lt;a href="&lt;?php echo $category['href']; ?&gt;"&gt;&lt;img src="&lt;?php echo $category['image']; ?&gt;" alt="&lt;?php echo $category['name']; ?&gt;"&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;?php } ?&gt;
  </code></pre>
  
  <p>However it just gives me an error saying that the variable is unknown.</p>
  
  <p>Am I doing something wrong?</p>