A.8 AxAddPlugin


Setting this to a module loads the module and executes the handler method of the module before any AxKit processing is done.

This allows you to set up such things as sessions, to authenticate, or to perform other actions that require no XML output, before the actual XML processing stage of AxKit.

 AxAddPlugin MyAuthHandler 

There is also a companion option, AxResetPlugins . Plug-in lists persist and get merged into directories, so if you want to start completely fresh, use the following:

 AxResetPlugins AxAddPlugin MyFreshPlugin 

As with other options that take a module, prefixing with a + sign preloads the module at compile time.

XML Publishing with AxKit
XML Publishing with Axkit
ISBN: 0596002165
EAN: 2147483647
Year: 2003
Pages: 109
Authors: Kip Hampton

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net