[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] a question about urls mapping to the project directory layout


yes, but once I have determined that I want, say, admin_start(), how
would I instantiate an $admin_webapp object?

I feel I might not be explaining this clearly. Let me try again --

I do not think you need to have different $webapp objects.

Having said that, if you wanted to "redirect" to a new $webapp object, something like this could work:

	$self->header_type('none');
	my $app = new AdminWebApp( QUERY => $self->query );
	$app->run;
	return '';

But I really think, this (dispatching between functionality) is what run modes are for.
Is anyone doing this?

Thilo



---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.