[Catalyst] Re: questions on Reaction

2007-01-02 Thread Daniel McBrearty
ok, answered my own question, partly. Reaction::Controller isa Cat::C::Bindlex, which is a Cat::C so I can use a Reaction::Controller as a souped up Cat::C, I guess ... On 1/2/07, Daniel McBrearty [EMAIL PROTECTED] wrote: I took a look, I got it to run, I went ... ah ... now it's silly

Re: [Catalyst] Re: questions on Reaction

2007-01-02 Thread Matt S Trout
On 2 Jan 2007, at 16:12, Daniel McBrearty wrote: ok, answered my own question, partly. Reaction::Controller isa Cat::C::Bindlex, which is a Cat::C so I can use a Reaction::Controller as a souped up Cat::C, I guess ... Precisely. Reaction drops in happily to any existing Cat app, we've

Re: [Catalyst] Re: questions on Reaction

2007-01-02 Thread Daniel McBrearty
The only thing to remember is that it expects the I18N plugin to be loaded since all text is run through that before display Hmmm. I specifically don't want to use that plugin, as we have our own version which is similar but different. We may be a bit wrongheaded about this at the moment, but

Re: [Catalyst] Re: questions on Reaction

2007-01-02 Thread Daniel McBrearty
OK. It is a good idea to make sure everything in the view goes through the I18N code, for sure. I'd like to merge what we are doing there with the cat plugin, but tat can wait ... next questions, about the Root.pm of the example app ... : 1. use base 'Reaction::UI::RootController'; use

Re: [Catalyst] Re: questions on Reaction

2007-01-02 Thread Matt S Trout
On 2 Jan 2007, at 20:10, Daniel McBrearty wrote: OK. It is a good idea to make sure everything in the view goes through the I18N code, for sure. I'd like to merge what we are doing there with the cat plugin, but tat can wait ... next questions, about the Root.pm of the example app ... : 1.

Re: [Catalyst] Re: questions on Reaction

2007-01-02 Thread Daniel McBrearty
to be specific, I'm now getting : Caught exception in Engoi::Controller::Admin-end Can't call method render on an undefined value at /home/daniel/work/engoi/trunk/Engoi/script/../lib/Reaction/UI/Window.pm line 63. which I guess is caused by the fact that I have not put those templates ...

Re: [Catalyst] Re: questions on Reaction

2007-01-02 Thread Matt S Trout
On 2 Jan 2007, at 21:26, Daniel McBrearty wrote: to be specific, I'm now getting : Caught exception in Engoi::Controller::Admin-end Can't call method render on an undefined value at /home/daniel/work/engoi/trunk/Engoi/script/../lib/Reaction/UI/ Window.pm line 63. That's failure to find

Re: [Catalyst] Re: questions on Reaction

2007-01-02 Thread Daniel McBrearty
ok ... but I have /root as my site base (static files), all my tempates are in /templates ... can I put them in /templates/base somehow? On 1/2/07, Matt S Trout [EMAIL PROTECTED] wrote: On 2 Jan 2007, at 21:20, Daniel McBrearty wrote: gotcha. The only part I had to put in Root.pm was the

Re: [Catalyst] Re: questions on Reaction

2007-01-02 Thread Daniel McBrearty
OK, this is a little odd ... adding MyApp::View::XHTML.pm with contents package Engoi::View::XHTML; use Reaction::Class; extends 'Reaction::UI::Renderer::XHTML'; 1; somehow stamps on the config for my TT view, which is in yaml and looks like this: View::TToolkit: INCLUDE_PATH: 'templates'

Re: [Catalyst] Re: questions on Reaction

2007-01-02 Thread Daniel McBrearty
to give the extra info ... if I have just my Admin controller with just: package Engoi::Controller::Admin; use strict; use warnings; #use base 'Catalyst::Controller'; use base 'Reaction::UI::RootController'; use Reaction::Class; use aliased 'Reaction::UI::ViewPort'; 1; (no actions ...) and