how can i get php includes to work in the templates files, the server is set up to parse php code i html files so that is not a problem, but it is not working.
php include
Moderator: Thorsten
php include
Hello
how can i get php includes to work in the templates files, the server is set up to parse php code i html files so that is not a problem, but it is not working.
how can i get php includes to work in the templates files, the server is set up to parse php code i html files so that is not a problem, but it is not working.
Hi,
just put an variable in the template file, e.g. something like that
Then edit the file index.php and put this new variable in the array:
bye
Thorsten
just put an variable in the template file, e.g. something like that
Code: Select all
{myPHPinclude}Code: Select all
$tpl->processTemplate ("index", array(
"writeTitle" => $title,
"metaDescription" => $metaDescription,
"metaKeywords" => $metaKeywords,
"metaPublisher" => $metaPublisher,
....
"myPHPinclude" => include("yourpage.php"),
.....
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
hmm..now all includes gets paresed first :s before the rest of the page
http://www.programmer.no/faq/index.php
"toppinclude" => @include "$DOCUMENT_ROOT/themes/2003/topp.php",
"menyh1" => include ("../themes/2003/meny_h1.php"),
"menyh2" => include ("../themes/2003/meny_h2.php"),
http://www.programmer.no/faq/index.php
"toppinclude" => @include "$DOCUMENT_ROOT/themes/2003/topp.php",
"menyh1" => include ("../themes/2003/meny_h1.php"),
"menyh2" => include ("../themes/2003/meny_h2.php"),
-
Pädu
php-include in the header..?!?
When I replace the include by a {phpmyinclude} and try to replace them as you recommended it, the included file appears on top of the page and not at the former {phpmyinclude} ;-(
http://www.studisurf.ch/services/phpmyfaq/index_kk.php
What could be wrong? Thx for support!
http://www.studisurf.ch/services/phpmyfaq/index_kk.php
What could be wrong? Thx for support!