[Catalyst] Catalyst::View::Thumbnail

Meeko meeko.lists at gmail.com
Thu Dec 17 06:43:49 GMT 2009


That was my problem.  Thanks!  It works perfectly now!


On Thu, Dec 17, 2009 at 12:42 AM, J. Shirley <jshirley at gmail.com> wrote:

> On Wed, Dec 16, 2009 at 9:18 PM, Meeko <meeko.lists at gmail.com> wrote:
> > Has anyone successfully got Catalyst::View::Thumbnail to work?  I'm
> trying
> > to add this to my app to create thumbnails on the fly for me so I don't
> have
> > to make them ahead of time with Image::Magick.
> > So, I'm following the guide from this page here:
> >
> http://perl.jonallen.info/writing/articles/creating-thumbnails-with-catal=
yst
> > However, as soon as I add the view Thumbnail.pm (by doing
> > script/myapp_create.pl view Thumbnail Thumbnail), no matter what I do,
> any
> > page in my app produces the following error:  "Couldn't render image:
> Image
> > data missing from stash"
> > I created an Images file model and a thumbnail controller exactly like =
in
> > the guide, but still get the error.  Even if I don't put any code in my
> app
> > at all to do with thumbnails, and never forward to the Thumbnail.pm vie=
w,
> I
> > still get this error just by the mere presense of the view Thumbnail.pm
> > Also, I looked in the file Thumbnail.pm that was created, and its mostly
> > empty, except for the pod.  This is all the file has in it:
> > package MyApp::View::Thumbnail;
> > use strict;
> > use parent 'Catalyst::View::Thumbnail';
> > =3Dhead1 NAME
> > ... the rest is all pod.  Is this normal, or is there something screwed
> up
> > with my installation?
> > Any help you can provide would be appreciated.  Thanks!
>
>
> Any time you have multiple views, you *must* declare which view you
> want Catalyst to use by default.
>
> To accomplish this, in your application config just provide:
> default_view: TT (or whatever your default view is)
>
> You can put this in MyApp.pm or myapp.(conf|yml) as a top level
> configuration option.
>
> -J
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20091217/da1b6=
ca3/attachment.htm


More information about the Catalyst mailing list