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

2013-09-11 Thread Rob Brown
; ); has '+is_html5' => (default=>1); __PACKAGE__->meta->make_immutable; use namespace::autoclean; 1; and in your config: form_handler LoginForm::Bootstrap ... cheers, Lukas Hi Rob Brown. thank you for your reply. On 09/10/13 10:55, Rob B

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

2013-09-10 Thread Rob Brown
Hi Ferz, I'm a little confused as to what you're trying to do exactly. Here's a simple typical TT example of the login form using CatalystX::Controller::Auth... id="loginform" > [% form.field('email').render %] [% form.field('password').render %

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 > t

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] 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 are

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 =

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] 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 di

Re: [Catalyst] Why is $c undefined?

2012-10-29 Thread Rob Brown
me to get my head round for sure! Regards, Craig. ____ From: 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 $

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 automa

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... 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 if ya want some extr

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] Basic Background Question, DBIx::Class

2012-02-05 Thread Rob Brown
, basically building my app as standalone and hooking it into Catalyst as a model (http://lecstor.com/catalyst_fat_model.html). It's not perfect though.. If you search the list you should find more than a few related discussions.. cheers, J On Sun, Feb 5, 2012 at 9:43 PM, Rob

[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