I'm new(ish) at PHP, and having a little trouble figuring something. Perhaps best explained by example.
Code: Select all
class queries {
...
...
function assign_smarty($data) {
foreach ($data as $key=>$value) {
$smarty->assign($key, $value);
}
}
}
The call I'm using in the related page is just
Code: Select all
$queries->assign($data)Lotsa thanks,
- The Goo