:?: how to have a .php and .tpl for vShare
I looked at the smarty site and viewed the tutorial about it I just got more confused LOL.
If I was to make a page called links.php and wanted to use links.tpl as it's template, what do I need to put in the links.php to have it use the links template?
Re: :?: how to have a .php and .tpl for vShare
Save the following code and name it as links.php and upload to your vShare installed folder
Code:
<?php
require("include/config.php");
require("include/function.php");
STemplate::assign('err',$err);
STemplate::assign('msg',$msg);
STemplate::display('header.tpl');
STemplate::display('error.tpl');
STemplate::display('links.tpl');
STemplate::display('footer.tpl');
db_close();
Create links.tpl with your links and upload to templates folder
Re: :?: how to have a .php and .tpl for vShare