Dave Cross wrote:
On Thu, Jul 21, 2005 at 04:11:28PM -0500, Will wrote:

As I mentioned in an earlier post, I have both Class::DBI and TT working individually just fine. The problem I have now is getting the results of a Class::DBI retrieve_all method call into my TT template variables.

I have in my script:

my @volumes = S::Volumes->retrieve_all;
my $vars = {'volumes' => @volumes};


That needs to be a reference to your array - not the array itself.

my $vars = {'volumes' => [EMAIL PROTECTED];

Then all your existing code should work fine.

Dave...


Thanks!


_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to