function getCategories_M() {
$get_cat = $db->fetchRow("select * from `classes_categories_lang`");
while($row = $db->fetchAssoc($get_cat))
{
$id = $row['id'];
$name = $row['name'];
}
}
$c = new categories();
$get_cat = $c->getCategories_M();
$smarty->assign("get_cat", $get_cat);
{foreach from=$rows item=rowItem}
{$rowItem.id}
{$rowItem.name}
{/foreach}