Does anyone have a base php file that will include the header and footer for MMH, but allow the addition of personal content pages, but remain intact with the site theme?
Page 1 of 1
Adding additional pages with site header. footer and theme
#1
Posted 25 August 2009 - 06:56 PM
-- Skidpics
My Sites:
1000slogans.com - Free Glitter Text and Slogan Maker
FacesofWoW.net - World of Warcraft Social Site
My Sites:
1000slogans.com - Free Glitter Text and Slogan Maker
FacesofWoW.net - World of Warcraft Social Site
#2
Posted 25 August 2009 - 07:08 PM
/example.php
/source/public_html/example.tpl
<?php
// Output the contents of template file "example.tpl"
// This example does not use the <template> tag to load
// multiple templates. It's just an example of the most
// basic usage of the Mihalism Template Engine.
require_once "./source/includes/data.php";
// Output Function:
// $mmhclass->templ->output($filename, $template);
// $filename = name of template file without .tpl
// $template = <template> ID - not used in this example
$mmhclass->templ->output("example");
// So what just happened?
// You told Mihalism Template Engine to take the contents
// of the "example.tpl" file and output it between the global
// page header and footer. If you want a function that just
// returns the value of a parsed template without placing it
// between the global page footer and header then the parse_template()
// function can be used.
// Want to learn more?
// Check out the template guide: http://www.mihalism.net/topic/276-mihalism-template-engine-guide/
?>/source/public_html/example.tpl
hello world!
#3
Posted 25 August 2009 - 08:25 PM
works perfect! Thanks!
-- Skidpics
My Sites:
1000slogans.com - Free Glitter Text and Slogan Maker
FacesofWoW.net - World of Warcraft Social Site
My Sites:
1000slogans.com - Free Glitter Text and Slogan Maker
FacesofWoW.net - World of Warcraft Social Site
Page 1 of 1

Sign In
Register
Help




MultiQuote