
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Question about Autoload
What's defined when the Autoload stuff is done? I want to do some
Autoloading on the userdb. Has the record been read in from the
database when the autoload is executed? How can I easily access the
various fields? Do I have to use the [data userdb ...] tag? Wouldn't
that cause some sort of recursion? I want to do something like this.
Userdb ....
Autload <<EOR
[if data userdb pricefield]
[perl] $Config->{PriceField} = $Values->{pricefield} [/perl]
[/if]
EOR
I got the perl snippet from
http://lists.akopia.com/pipermail/interchange-users/2001-February/004944.html.
But what I don't know is how the $Values reference gets updated? Does
it hold the values of the currently read-in record with keys to all
the fields?
--
(__) Doug Alcorn (mailto:doug@lathi.net http://www.lathi.net)
oo / PGP 02B3 1E26 BCF2 9AAF 93F1 61D7 450C B264 3E63 D543
|_/ If you're a capitalist and you have the best goods and they're
free, you don't have to proselytize, you just have to wait.
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users