[prev in list] [next in list] [prev in thread] [next in thread]
List: smarty-general
Subject: [SMARTY] pmachine + smarty
From: "Rene Grassegger" <rene () grassegger ! at>
Date: 2003-06-23 13:39:07
[Download RAW message or body]
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
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic