<?php define("__ADMIN__", true); try { $links = new Links(); $linksCat = new LinkCat(); $Users = new Users(); $links->setId($vars['id']); $Users->BuildData(); $links->BuildData(); $linksCat->BuildData(); $smarty->assign(array("load" => "links/form/link_edit.tpl", "loadindex" => "links/view/link_index.tpl", "user_list" => $Users->getRecords(), "link_cat_list" => $linksCat->getIndex(), "linkCat_index" => $linksCat->getIndex(), "records" => $links->getRecords())); $smarty->display('admin/body/index.tpl'); } catch (Exception $e) { print "Exception: " . $e->getMessage(); }