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

[cgiapp] Creating a Plugin module


(this *may* be more a perl question as opposed to a cgiapp question so apologies in advance if it is)

I want to create a module (like cgiapp::Plugin::DBH) that I can *use* and then call directly from $self.

As an example, say that the application is a blogging application, and I want to create the variable:

$self->blog

so that I can do

$self->blog->getBlog($blogid);

(or some such equivalent method) that returns (say) a database handle.

How would you do this by putting *just*

use MyApp::Plugin::Blog;

at the top?

I'm confused.  Am I missing something about cgiapp that I should know about?

TIA

Paul




---------------------------------------------------------------------
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.