VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: kanapka on January 04, 2013, 14:11:24 PM

Title: how to fetch tpl file
Post by: kanapka on January 04, 2013, 14:11:24 PM
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?
Title: Re: how to fetch tpl file
Post by: PRO on January 04, 2013, 18:01:21 PM
what are you trying to do?

explain