News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

how to fetch tpl file

Started by kanapka, January 04, 2013, 14:11:24 PM

Previous topic - Next topic

kanapka

Hello
first sorry for my english ;)

I try fetch tpl file but in vm 2.0 didn't work.
in vm 1.1 I feth like this:

function get_my_file(){
$tpl = vmTemplate::getInstance();
$tpl ->set('user', $user);
$result = $tpl->fetch ('default.tpl.php');
return $result;
}


How to do it in VM 2.0?

PRO

what are you trying to do?

explain