Victor Lugo Posted April 3, 2010 Share Posted April 3, 2010 Hi, Here's an example: _tpl_vars: Array ( [clientsstats] => Array ( [numpaidinvoices] => 0 [paidinvoicesamount] => $0.00 USD [numdueinvoices] => 0 So I wanted to modify/assign numdueinvoices, I'd use the following: $smarty->assign('clientsstats', array('numdueinvoices' => 123456)); Issue with the above is that it will kill the other items of the array. I'd like to know how to modify a single item of said array without destroying the other items. Any ideas truly welcomed. 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted April 3, 2010 Share Posted April 3, 2010 In your template file, you can add: {php}$this->_tpl_vars['clientsstats']['numdueinvoices'] = "value";{/php} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.