[Catalyst] Basic Background Question, DBIx::Class

2012-02-05 Thread Rob Brown
Hi, I've recently jumped into Catalyst and DBIx::Class, and after following some tutorials, I am left with some controllers and a view which I'm completely happy with. The lib/Schema and lib/Model directories have me a little confused however. I have a single class in lib/Model, inheriting from

Re: [Catalyst] Basic Background Question, DBIx::Class

2012-02-05 Thread Rob Brown
, J On Sun, Feb 5, 2012 at 9:43 PM, Rob Brown r...@intelcompute.com wrote: Hi, I've recently jumped into Catalyst and DBIx::Class, and after following some tutorials, I am left with some controllers and a view which I'm completely happy

Re: [Catalyst] RESTful response codes.

2012-02-23 Thread Rob Brown
Think I've been here before... Sounds like this is down to the separation of transport vs application. If the request was successfully received, you should return a 200. If your app decides something was wrong, then it's for your own message framework to send that information back. Don't just

Re: [Catalyst] HTML::FormHandler onchange event

2012-09-24 Thread Rob Brown
Hi Gordon, Not quite the best place to be asking, but you want something like... select name=retailer onChange=parent.location='/retailers/?retailer='+this.options[this.selectedIndex].value HTML::FormHandler allows you to set javascript actions in the field definitions. Email me directly

Re: [Catalyst] Why is $c undefined?

2012-10-29 Thread Rob Brown
There's no black-magic going on, so your AuthenticateUser() sub never magically gets $c. In short, you'll only get $c when using the method attributes, such as :Private, :Chained, etc. On 10/29/2012 07:07 PM, Craig Chant wrote: Hi, I seem to be unable to work out why $c is never

Re: [Catalyst] Why is $c undefined?

2012-10-29 Thread Rob Brown
: Rob Brown [r...@intelcompute.com] Sent: 29 October 2012 19:11 To: catalyst@lists.scsys.co.uk Subject: Re: [Catalyst] Why is $c undefined? There's no black-magic going on, so your AuthenticateUser() sub never magically gets $c. In short, you'll only get $c when using the method attributes

Re: [Catalyst] Unable to output anything in Root.pm - 'auto'

2012-10-29 Thread Rob Brown
basically... $sth-finish if you've finished with the results of that statement, ie, you've looped through the rows and are now done. $dbh-disconnect if you've finished with the database connection, tho now you start to think about working in a persistent environment, where you may never

Re: [Catalyst] Can't get view / template to work ?

2012-10-30 Thread Rob Brown
the paths are from /root/src (as per the config), so if you've created another folder called login and put the file in there, you'd need to say... $c-stash(template = 'login/login.tp'); On 10/30/2012 04:52 PM, Craig Chant wrote: I seem stuck with implementing my first view / template. I

Re: [Catalyst] Can't get view / template to work ?

2012-10-30 Thread Rob Brown
ignore that then, didn't read all of your message :-/ On 10/30/2012 04:58 PM, Rob Brown wrote: the paths are from /root/src (as per the config), so if you've created another folder called login and put the file in there, you'd need to say... $c-stash(template = 'login/login.tp'); On 10/30

Re: [Catalyst] Access Catalyst context object from script

2012-10-31 Thread Rob Brown
Your script is not running under Catalyst, so $c, or the Catalyst context, is not available. $c manages HTTP requests and responses. It sounds like your approach/design may be slightly flawed. Perhaps explain what you're trying to achieve - what are you doing with these templates? where

Re: [Catalyst] I'm loosing the plot here? - Controller behaviour that makes no sense

2012-10-31 Thread Rob Brown
Craig, Seriously, come and talk to us on irc... http://chat.mibbit.com/#catal...@irc.perl.org It's much easier/faster to get answers in real-time. Cheers, Robsco On 10/31/2012 11:42 AM, Craig Chant wrote: Sorry, I'm getting confused the way this mailing list works as it is all fragmented

Re: [Catalyst] List of Applications using Catalyst

2013-06-08 Thread Rob Brown
I especially like the list of spam (?) sites/blogs on http://wiki.catalystframework.org/wiki/sitesrunningcatalyst which don't look very much like Catalyst. Rob On 8 Jun 2013, at 00:16, bill hauck wrote: Hi. Does anyone know of a list of applications that are using Catalyst? I saw the

Re: [Catalyst] How to style CatalystX::Controller::Auth?

2013-09-11 Thread Rob Brown
-make_immutable; use namespace::autoclean; 1; and in your config: Controller::Auth form_handler LoginForm::Bootstrap ... /Controller::Auth cheers, Lukas Hi Rob Brown. thank you for your reply. On 09/10/13 10:55, Rob Brown wrote: Hi Ferz, I'm a little confused as to what