[Catalyst] Forms and Plugins and Tutorials, oh my!!
Matt S Trout
dbix-class at trout.me.uk
Fri Aug 18 01:15:18 CEST 2006
Jonathan Rockway wrote:
> I am writing a plugin to do this as we speak. Expect it to hit CPAN by
> the end of the weekend. The API looks something like:
> my $image = $c->register_image('/path/to/the/image');
> $image will have methods like $image->url that return a fully-qualified
> URL that your web server can statically serve the image from. You can
> also expire the images, delete them, get a scaled version (for exciting
> AJAX scaling effects; yay), etc.
> The details aren't completely worked out yet, though, and are subject to
> major changes. (This was going to be a Controller in my app, but I
> guess a plugin is more useful to others. Major change #1 :)
So make it a controller base class.
People make everything a plugin by default because it seems like a good idea
at the time. This has resulted in massive compatibility issues due to
Don't Do It.
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Catalyst