Re: [SMARTY] smarty and sympoll
| From: | Valerio Santinelli | Date: | Tue, 06 Aug 2002 09:07:47 +0000 |
| Subject: | Re: [SMARTY] smarty and sympoll | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5591@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Michał Krowiarz" <michal@probasket.pl>
> i have a big problem with smarty and sympoll, i was trying to add a
> poll to my site using the sympoll script, but the only thing i get is
> "Unable to connect to the database" information as I include the
> sympoll code to my template using {php}{/php} or {include_php}. but
> when i don't use smarty and no other templates, just plain sympoll
> code everything works just fine.
> maybe someone managed to combine smarty and sympoll and can help me?
Here's a piece of the code I used to integrate sympoll in an existing site
using Smarty:
require 'sympoll/booth.php';
$tpl->assign("poll", newest_booth(1));
And you've only got to put a {$poll} tag in your template.
--
Valerio Santinelli
One Man Crew Gaming Community (http://www.onemancrew.org)
My Lab (http://tanis.hateseed.com)
HateSeed.com Founder (http://www.hateseed.com)
In Flames Italia Webmaster (http://www.inflames.it)