pmachine + smarty

From: Date: Mon, 23 Jun 2003 13:39:07 +0000
Subject: pmachine + smarty
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9755@lists.php.net to get a copy of this message
Hi folks, I'm trying to make pmachine and smarty work together. So I tried to include the weblog File with "include_php" and "{php} {/php}", but I make something wrong. Could someone please help me? ### header.tpl: {include_php file="file:/usr/www/..../pm_inc.php"} <html> <head> <title>{#pageTitel#} {#siteTitle#}</title> </head> <body> #### END ### index.tpl {config_load file="haupt.conf" section="startseite"} {include file="header.tpl"} {php}weblog_entries($id ,"weblog");{/php} {include file="footer.tpl"} ###END But I get an error message: "Undefined variable: id in /usr/www/..." So I tried to give him an existing id: {php}weblog_entries(C0_2_1 ,"weblog");{/php} But I get an other error message: Use of undefined constant C0_2_1 - assumed 'C0_2_1' in /usr/www/users/..../%%1172603085/index.tpl.php I searched with google and the archive of the mailling list, but I can't find something, that would help me. Thanks for your help! Rene

« previous php.smarty.general (#9755) next »