darkvale Posted June 10, 2008 Share Posted June 10, 2008 How do i make a new page with header and footer on? Which program do people use to make the php pages thanks in advance Link to comment Share on other sites More sharing options...
BodyLove Posted January 20, 2009 Share Posted January 20, 2009 yes, also interesting. Could anyone help?Thanks Link to comment Share on other sites More sharing options...
Guest Posted January 20, 2009 Share Posted January 20, 2009 How do i make a new page with header and footer on? Which program do people use to make the php pages thanks in advance Do you want to tweak the actual page or want to add new pages!?!...You can browse here to find out a free ide: http://www.thefreecountry.com/programming/editors.shtml Link to comment Share on other sites More sharing options...
Tamas Szegedi Posted January 20, 2009 Share Posted January 20, 2009 It's easy: 1.) Make a file .php to the root as: whatyouwant.phpwith: <?php include(dirname(__FILE__).'/config/config.inc.php'); include(dirname(__FILE__).'/header.php'); $smarty->display(_PS_THEME_DIR_.'whatyouwant.tpl'); include(dirname(__FILE__).'/footer.php'); ?> 2.) Make a TPL file to your themes dir with: {capture name=path}{l s='Main Title'}{/capture} {include file=$tpl_dir./breadcrumb.tpl} {l s='Main Title 2'} And add to the file, what you want ! That's all Byebye Link to comment Share on other sites More sharing options...
BodyLove Posted January 21, 2009 Share Posted January 21, 2009 It's easy: 1.) Make a file .php to the root as: whatyouwant.phpwith: <?php include(dirname(__FILE__).'/config/config.inc.php'); include(dirname(__FILE__).'/header.php'); $smarty->display(_PS_THEME_DIR_.'whatyouwant.tpl'); include(dirname(__FILE__).'/footer.php'); ?> 2.) Make a TPL file to your themes dir with: {capture name=path}{l s='Main Title'}{/capture} {include file=$tpl_dir./breadcrumb.tpl} {l s='Main Title 2'} And add to the file, what you want ! That's all Byebye As i understand direct php not allowed, so could you please show how to connect to datbase from this page and make query and show some results.Thanks Link to comment Share on other sites More sharing options...
BodyLove Posted January 25, 2009 Share Posted January 25, 2009 When i make new variable in php file and assign it to tpl file right column and footer disappear. Could you please help what i do wrong?Thanks Link to comment Share on other sites More sharing options...
BodyLove Posted January 27, 2009 Share Posted January 27, 2009 It seems i found my mistake, but could anyone help - how to make custom meta tags information for new just created pages?Thanks Link to comment Share on other sites More sharing options...
Recommended Posts