[Catalyst] Catalyst controllers - can they be created without catalyst.pl helper script?

Jonathan Rockway jon at jrock.us
Thu Mar 20 22:17:11 GMT 2008


* On Thu, Mar 20 2008, Devin Austin wrote:
> Agreed, however in a situation when I'm on my laptop (most of the day
> while I'm away from my room with my "real" computer) and I don't want
> to put myself through the pain of installing perl and Catalyst on
> Windows, I'd like to be able to create new controllers if need be so I
> don't have to limit development to my location.

This doesn't sound like a good development methodology to me, but
creating a controller is easy enough:

  package Whatever::Controller::Foo;
  use base 'Catalyst::Controller';
  # code goes here
  1; 

All the helpers do is type that in for you.

> Anyway, thanks for the response.  Much easier than trying to grok the
> murky depths that the Catalyst code appears as to me :-)

As an aside, the code in libraries is no different from the code you
write yourself.  If you're not afraid to write Perl, you shouldn't be
afraid to read it.

Regards,
Jonathan Rockway

-- 
print just => another => perl => hacker => if $,=$"



More information about the Catalyst mailing list