[Catalyst] n00b question
Marcello Romani
mromani at ottotecnica.com
Thu Jun 15 08:31:58 CEST 2006
Justin Guenther ha scritto:
> On 6/14/06, Eric W. Bates <ericx at vineyard.net> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Sorry. Assumed the error was prior to parsing the file...
>
> No worries, it's just a bit hard to debug someone's code when you
> can't see it ;)
>
> I can't see anything wrong with that controller, could you post your
> code for HG.pm and the plant add template?
>
>
> Justin
>
>> # File: Plants.pm
>> # Author: Charlie Root, ericx at vineyard.net
>> # Date: Tue Jun 13 15:55:26 2006
>> # Time-stamp: <2006-06-13 17:24:37 ericx>
>> # Description: Plants controller
>> #
>> # $Id$
>> # $Log$
>>
>> package HG::Controller::Plants;
>>
>> use strict;
>> use warnings;
>> use base 'Catalyst::Controller';
>>
>> =head2 default
>>
>> The default renders a template.
>>
>> =cut
>>
>> sub default : Private {
>> my ( $self, $c ) = @_;
>>
>> # Hello World
>> #$c->response->body('HG::Controller::Plants is on Catalyst!');
>> $c->stash->{template} = 'plant.tt';
>> }
>>
>>
>> =head2 add
>>
>> Add a new plant into the database.
>>
>> =cut
>>
>> sub add : Local {
>> my $self = shift;
>> my $c = shift;
>>
>> # 2 different syntax?
>> #$c->stash->{template} = 'plant_add.tt';
>> $c->stash(template => 'plant_add.tt');
>> }
>>
>>
>> 10101;
>>
>>
>>> Justin Guenther
>>>
>>> _______________________________________________
>>> List: Catalyst at lists.rawmode.org
>>> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
>>> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
>>> Dev site: http://dev.catalyst.perl.org/
>>>
>>>
>> - --
>> Eric W. Bates
>> ericx at vineyard.net
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.3 (FreeBSD)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>>
>> iD8DBQFEkCPyD1roJTQ4LlERAngfAJ97EeIf57EWnkjdTVTevowH/65BAQCeIQJt
>> 1ywhryQ5rovgVNXbOmrfeA4=
>> =9RzM
>> -----END PGP SIGNATURE-----
>>
>> _______________________________________________
>> List: Catalyst at lists.rawmode.org
>> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
>> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
>> Dev site: http://dev.catalyst.perl.org/
>>
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>
>
May I suggest he posts the .tar.gz of the entire app, so we can test it
more toroughly ?
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
More information about the Catalyst
mailing list