title: smarty plugin return array
body: <p>I am creating a plugin that returns a array to the template file. I can't seem to get the full array to be parsed to the template file.</p>
  
  <p>plugin function.arraytest</p>
  
  <pre><code>function smarty_function_arraytest($params,Smarty_Internal_Template $template)
  {
      $x = array("1"=&gt;array("categories"=&gt;"Action"));
       return $x
  }
  </code></pre>
  
  <p>template file</p>
  
  <pre><code>{arraytest}
  </code></pre>
  
  <p>result
  array</p>
  
  <p>I cannot seem to iterate through the array in the template file.</p>
  
  <p>Any help would be very much appreciated.</p>
  
  <p>Thanks</p>