[Catalyst] (Beginner) Plugins

leonard.a.jaffe at jpmchase.com leonard.a.jaffe at jpmchase.com
Tue Oct 24 16:43:33 BST 2006


------------------------------------------------------------------------------
Leonard A. Jaffe      (614)213-4283
JP Morgan Chase, Columbus, OH 
DSS Monitoring Instrumentation Services
leonard.a.jaffe at jpmchase.com
"Alejandro Imass" <alejandro.imass at gmail.com> 10/24/2006 10:06 AM
> Now, regarding my original question on the use of plugins or not. 
> Can you tell me, like for dummies, what are the advantages or 
> disadvantages of using a Catalyst plugin or using the CPAN modules 
> with a simple use. For example, if I decide to dynamically generate 
> the images would I need or have any advantages or problems to make a 
> plugin for Image::Magick?

Use a plug-in for things that are part of the processing chain of every
request.  These are things like authentication, authorization, and 
sessions.

For your money, you wan to create controller, which uses Image::Magick,
and implements your various image manipulating methods. 

Then define another controller to handle your processing requests. 
It will figure out which files are involved, call the methods in the 
other controller (via forward()) and receive manipulated images back, 
then it will either write them to the disk, or pass directly back to 
the client using content-type="image/{whatever}".
 
Len.
 


-----------------------------------------
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase & Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jules.scsys.co.uk/pipermail/catalyst/attachments/20061024/6c7c9723/attachment.htm


More information about the Catalyst mailing list