Hello!
I use CGI::Application::Dispatch with a dispatch table. There, I specify
that all my modules are under a prefiy 'My'.
That works fine, as long as I write all modules my own. But today, I
wanted to use the CGI::Application::Photogallery. That didn't work because
the request was dispatched tp My::CGI::Application::Photogallery. Well, I
could use some dummy, but isn't there any other way?
I thought on using prefix => '' in the dispatch specific configuration,
but that only for additional prefixes, it doesn't alter the "global"
prefix (and that makes sense).
Any ideas?
Here is some example code:
use CGI::Application::Dispatch;
CGI::Application::Dispatch->dispatch(
prefix => 'My', # this is the global prefix
args_to_new => { # my usual args_to_new
TMPL_PATH => '/my/path',
PARAMS => {
cfg_file => $Bin . '/config/meaningful.cfg',
},
},
table => [
'' => { lang => 'de', app => 'App', rm =>
'start', },
# ...
# Gallery
'/gallery/:lang' => {
prefix => '', # doesn't work as intended (in this case)
app => 'CGI::Application::Photogallery',
rm => 'start',
args_to_new => {
TMPL_PATH => 'C:/Apache/htdocs/cms/My/Templates/',
PARAMS => {
cfg_file => $Bin . '/config/meaningful.cfg',
photos_dir => 'c:/apache/htdocs/grafiken/cms' # thats
my additional param I'm in need of
},
}
},
],
);
Regards, A. Becker
--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]