Hi,
* Rafiq Ismail (ADMIN) <[EMAIL PROTECTED]> [2002-04-09 11:05]:
> Hi I'm new to TT, and it's being a real pain at the moment, the man
> page is very general and the debugging doesn't really say very much.
>
> Quick question:
> if I do a:
> <Perl>
> use lib qw(/paths /paths);
> </Perl>
>
>
> Should this be enough to indicate to Apache::Template where it should
> look in order to find the library path to the module which I have
> specified under TT2PluginBase?
The TT2PluginBase directive tells Template what namespace to prepend the
name you use in the template with. So, since the perl module is
Partner::TT::Affiliate_Contacts, you'll need a plugin base of
Partner::TT in order to call the plugin as Affiliate_Contacts, or you
can call the plugin as TT.Affiliate_Contacts from within the template.
I'll duplicate the relevent lines:
> TT2PluginBase Partner
[-- snip --]
> [% USE affiliateSearch = Affiliate_Contacts('affiliateId'=affiliateId) %]
Try changing either TT2PluginBase in your httpd.conf to Partner::TT or
use, in your template:
[% USE affiliateSearch = TT.Affiliate_Contacts('affiliateId'=affiliateId) %]
I think the second will be easier in the short run.
(darren)
--
Buying books would be a good thing if one could also buy the time to
read them in: but as a rule the purchase of books is mistaken for the
appropriation of their contents.
-- Arthur Schopenhauer