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

2012-10-31 Thread Craig Chant
Sorry for the missing capital, and yes that's what I ran... also I'm sorry if I miss ready the tutorial, I have Dyspraxia. Why would you have two ->config statements and not all the setting in one ->config , that makes no sense? I did provide the output from the server plus debug screen?

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

2012-10-31 Thread Craig Chant
You're misread what I put where? It clearly states Edit lib/MyApp/View/HTML.pm and you should see something similar to the following: __PACKAGE__->config( TEMPLATE_EXTENSION => '.tt', render_die => 1, ); And that's where I put the extension setting? -Original

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

2012-10-31 Thread Craig Chant
Sorry IRC? I did post the debug and output , has this email not been received? -Original Message- From: Tomas Doran [mailto:bobtf...@bobtfish.net] Sent: 30 October 2012 22:26 To: The elegant MVC web framework Subject: Re: [Catalyst] I'm loosing the plot here? - Controller behaviour that

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

2012-10-31 Thread Craig Chant
SQL injection by whom and how? I can't get the template to work, and you think I've got user input set up? I give up, it was I nice idea but I'm going no-where fast. Thanks anyway. -Original Message- From: Tomas Doran [mailto:bobtf...@bobtfish.net] Sent: 30 October 2012 22:22 To: The el

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

2012-10-31 Thread David Schmidt
Tomas asked for the debug output of the failing response. You pasted only the server startup debug output. On 31 October 2012 10:46, Craig Chant wrote: > Sorry IRC? > > I did post the debug and output , has this email not been received? > > -Original Message- > From: Tomas Doran [mailto:b

[Catalyst] Access Catalyst context object from script

2012-10-31 Thread Anthony Gladdish
Hi, Got a lot of code in a controller that should be moved out and into an external script (that's called by a cronjob) which calls stuff from the Model and then emails it. The script can access the model fine and re-use a Template::Toolkit template already written fine (I'm using MIME::Lite::

[Catalyst] Catalyst and Java

2012-10-31 Thread Tim Anderson
I have a handful of java servlets that I would like to 'front-end' with my Catalyst application, essentially using Catalyst to provide authentication/authorization before passing along the browser requests to the servlet. I don't need session information in the servlet, and I'm willing to leave th

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

2012-10-31 Thread Dimitar Petrov
Crag, would you mind stopping in #catalyst onto irc.perl.org it would probably be easier. For instant chat you can follow this link http://chat.mibbit.com/#catal...@irc.perl.org Cheers On Wed, Oct 31, 2012 at 10:51 AM, Craig Chant wrote: > SQL injection by whom and how? > > I can't get the te

Re: [Catalyst] Access Catalyst context object from script

2012-10-31 Thread Dimitar Petrov
Hello Anthony, I think the catalyst object is not called Catalyst but c, this you need [% c.uri_for(...) %] or you can use [% c.uri_for_action(...) %] to point to particular action. You could change that setting the CATALYST_VAR into your view configuration (as shown here https://metacpan.org/modu

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] Access Catalyst context object from script

2012-10-31 Thread Ian Docherty
On 31 October 2012 10:41, Anthony Gladdish wrote: > Hi, > > Got a lot of code in a controller that should be moved out and into an > external script (that's called by a cronjob) which calls stuff from the Model > and then emails it. > > The script can access the model fine and re-use a Template:

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

2012-10-31 Thread Craig Chant
Sorry, I'm getting confused the way this mailing list works as it is all fragmented with the replies, the last one I saw was a request for the server start-up output. Any chance the Catalyst community could setup a proper forum, vBulletin or such like, it's much easier and user friendly! Howev

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] Can't get view / template to work ?

2012-10-31 Thread Will Crawford
On 31 October 2012 09:31, Craig Chant wrote: > You're misread what I put where? > > It clearly states > > Edit lib/MyApp/View/HTML.pm and you should see something similar to the > following: > > __PACKAGE__->config( > TEMPLATE_EXTENSION => '.tt', > render_die => 1, > )

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

2012-10-31 Thread Alexander Hartmaier
On 2012-10-31 13:28, Will Crawford wrote: > On 31 October 2012 09:31, Craig Chant wrote: >> You're misread what I put where? >> >> It clearly states >> >> Edit lib/MyApp/View/HTML.pm and you should see something similar to the >> following: >> >> __PACKAGE__->config( >> TEMPLATE_E

RE: [Catalyst] Access Catalyst context object from script

2012-10-31 Thread Anthony Gladdish
>-Original Message- >From: Ian Docherty [mailto:catal...@iandocherty.com] >Sent: 31 October 2012 11:29 >To: The elegant MVC web framework >Subject: Re: [Catalyst] Access Catalyst context object from script > >On 31 October 2012 10:41, Anthony Gladdish > wrote: >> Hi, >> >> Got a lot of code

RE: [Catalyst] Access Catalyst context object from script

2012-10-31 Thread Anthony Gladdish
>From: Dimitar Petrov [mailto:mita...@gmail.com] >Sent: 31 October 2012 11:18 >To: The elegant MVC web framework >Subject: Re: [Catalyst] Access Catalyst context object from script > >Hello Anthony, > >I think the catalyst object is not called Catalyst but c, this you need [% >c.uri_for(...) %] o

Re: [Catalyst] Access Catalyst context object from script

2012-10-31 Thread Alexander Hartmaier
On 2012-10-31 13:30, Anthony Gladdish wrote: >> -Original Message- >> From: Ian Docherty [mailto:catal...@iandocherty.com] >> Sent: 31 October 2012 11:29 >> To: The elegant MVC web framework >> Subject: Re: [Catalyst] Access Catalyst context object from script >> >> On 31 October 2012 10:41

RE: [Catalyst] Access Catalyst context object from script

2012-10-31 Thread Anthony Gladdish
>-Original Message- >From: Alexander Hartmaier [mailto:alexander.hartmaier@t- >systems.at] >Sent: 31 October 2012 12:46 >To: catalyst@lists.scsys.co.uk >Subject: Re: [Catalyst] Access Catalyst context object from script >I suggest to load your Catalyst app with a config that doesn't >load

Re: [Catalyst] Catalyst and Java

2012-10-31 Thread Devin Austin
On Wed, Oct 31, 2012 at 3:50 AM, Tim Anderson wrote: > > I have a handful of java servlets that I would like to 'front-end' with my > Catalyst application, essentially using Catalyst to provide > authentication/authorization before passing along the browser requests to > the servlet. I don't need

Re: [Catalyst] Catalyst and Java

2012-10-31 Thread Ashley Pond V
On Wed, Oct 31, 2012 at 8:41 AM, Devin Austin wrote: > On Wed, Oct 31, 2012 at 3:50 AM, Tim Anderson wrote: >> >> I have a handful of java servlets that I would like to 'front-end' with my >> Catalyst application, essentially using Catalyst to provide >> authentication/authorization before passin

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

2012-10-31 Thread Tomas Doran
On 31 Oct 2012, at 09:29, Craig Chant wrote: > Sorry for the missing capital, and yes that's what I ran... also I'm sorry if > I miss ready the tutorial, I have Dyspraxia. > > Why would you have two ->config statements and not all the setting in one > ->config , that makes no sense? Right - y

Re: [Catalyst] Catalyst and Java

2012-10-31 Thread Tim Anderson
Thank you both for your suggestions. Creating my own model is along the lines of what I was thinking, but I know in advance that this is going to really stretch my abilities. Another possibility that has occurred to me since my original post is that I could remove the authentication to Apache (us

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

2012-10-31 Thread Tomas Doran
On 31 Oct 2012, at 12:32, Alexander Hartmaier wrote: > Guys, Craig is on IRC now and I'm helping him to resolve the issue. > He is using Catalyst::View::HTML::Template not ::TT so the options are > different. Awesome, thanks for jumping in an helping, much appreciated! (I have been real busy so