public static function viewInstituicoesAjax() { $smarty = new Smarty(); $inst = new InstituicaoMySqlDAO(); $smarty->assign('instituicoes', $inst->queryAll()); $smarty->display(VIEW . 'templates/selectInstituicoes.tpl'); }