Re: [Catalyst] Making a hash available across the application

2010-03-17 Thread Tomas Doran
On 17 Mar 2010, at 18:48, Ram Dobson wrote: I'm kinda new to Catalyst too, but i believe this is what one might call a "helper" function. Anybody who knows more have an opinion on the relative merit of my change? Crapping stuff into the top level context class like that works, however

Re: [Catalyst] ask for help on table with 2 similar columns

2010-03-17 Thread Tomas Doran
On 17 Mar 2010, at 18:00, nhyda wrote: I am learning Catalyst for my project. DBIx::Class question follows.. I think you want to be asking that on the DBIC list, sorry.. :) Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists

[Catalyst] Social.com Co-Founder with Perl/Catalyst experience

2010-03-17 Thread Scott Carter
I'm looking for a technical Co-Founder for a Social.com startup in Massachusetts (applicants from southern NH or Rhode Island are fine also). Details are here: http://j.mp/cQatCf or http://jobs.webinnovatorsgroup.com/job/co-founder-for-social-media-startup-southborough-ma-social-com-d59c5cee63/

Re: [Catalyst] Making a hash available across the application

2010-03-17 Thread Ram Dobson
I might do it a little different, but i like this Jshirley On 3/17/2010 2:04 PM, J. Shirley wrote: [snip] -package MyApp::Schema; +package MyApp; use Moose; extends 'DBIx::Class::Schema'; -has something => ( +has my_hash => ( is => ro, lazy_build => 1 ); sub _build_somethi

Re: [Catalyst] Making a hash available across the application

2010-03-17 Thread J. Shirley
On Wed, Mar 17, 2010 at 9:43 AM, Dermot wrote: > Hi, > > I'm sure there is a way but it's not jumping out at me. > > I have a list of countries and their associated database ID's that I > need to stash in the header of (almost) every page on a site. I have > no problems creating a controller that

[Catalyst] Making a hash available across the application

2010-03-17 Thread Dermot
Hi, I'm sure there is a way but it's not jumping out at me. I have a list of countries and their associated database ID's that I need to stash in the header of (almost) every page on a site. I have no problems creating a controller that can do $c->model(DB::Countries)->search({foo=>1}) and stick

[Catalyst] ask for help on table with 2 similar columns

2010-03-17 Thread nhyda
I am learning Catalyst for my project. Here is my problem. I have two tables as shown below Table 1 Table 2 id name id left right 1 A1A B 2 B2B C 3 C3C D 4 D4AE 5 E5BE I want

Re: [Catalyst] Making a hash available across the application

2010-03-17 Thread Ido Perlmuter
Catalyst applications are Perl applications just like anyone else. If you want to access a hash variable (or any variable) which is declared (and possibly defined) in MyApp.pm (or any module for that matter), then all you need to do is refer to that variable from external sources (like templates) b