I am trying to modify a template using code that always worked in version 5 and before but doesn't work in 6.
This sample from the documentation doesn't work, it crashes.
{php}
$userid = $this->_tpl_vars['clientsdetails']['userid'];
echo 'User ID is '. $userid ;
{/php}
This code is working now in 5.3.13 but crashes in 6.0
{php}
$cldetails=$this->get_template_vars("clientsdetails");
echo 'Users ID is '. $cldetails['userid'];
{/php}
What am I doing wrong? This is in /templates/mytemplate/clientareaproductdetails.tpl