Hi, i'm just starting to look at CGI::App, and have a few questions that weren't answerwed in the docs or on the Wiki.
First, is there any easy way to change the URI
parsing, so that instead of going to http://www.mysite.com/myapp.cgi?table=album&id=5
with a hidden run-mode of "view", you could go to
http://www.mysite.com/myapp/album/view/5 ?
I was also looking into doing something like this. I think it could easily be done in mod_perl (since you mentioned you're going to use it below). I haven't done it, but I imagine you can use the Apache::Request object inside of a handler method in your CGI::App module. Just put the pieces together. If you come up with something let me know. I was thinking about putting together something very simple for CPAN to help others do the C::A mod_perl thing without using Apache::Registry. Maybe
CGI::Application::Handler or something.
Yeah, it's pretty straight forward depending on what you want to do. Here's a link that describes a couple of your options
Second, is there an easy way to run CGI::App entirely under mod_perl, so that you would use Apache::Request instead of CGI.pm, and could use a front-end handler instead of a myapp.cgi script, etc.?
http://www.mail-archive.com/[EMAIL PROTECTED]/msg00486.html
The idea for the CGI::Application::Handler from above would follow the #2 from the link above but would do the URI translation thing you mentioned above.
I actually went through the same thing. Actually, I had been using C::A for a while when I ran into Maypole. But I encountered the same thing you did. It works ok out of box, but then I spent all of my time trying to override all of it's built in functionality which turned out to be more work than doing it myself.i'm interested in CGI::App because i need to do some web database developmen, and i had been looking at Maypole, and realized that i really liked the Controller stuff, where it maps different URI's to different Perl modules, but i don't care about all the automatic stuff with its built in templates and built in search and built in editing. i realized that rather than use Maypole with all its many dependencies and then override everthing, i should try to find a better Controller framework.
Hope you enjoy the CGI::App world with the rest of us.
Michael Peters Developer PlusThree
--------------------------------------------------------------------- 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]