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

2010-03-18 Thread Alexander Hartmaier
Am Donnerstag, den 18.03.2010, 00:08 +0100 schrieb Tomas Doran: In fact, generally - you don't want to be calling the generic -search method in your controllers _at all_. The specific search functionality should instead be pushed down into your ResultSet classes, so that you say:

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

2010-03-18 Thread nhyda
Thank you anyway. I think I figure it out, it is just matter in what order you put all the { [ (. On Wed, Mar 17, 2010 at 7:09 PM, Tomas Doran bobtf...@bobtfish.net wrote: On 17 Mar 2010, at 18:00, nhyda wrote: I am learning Catalyst for my project. DBIx::Class question follows.. I think

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

2010-03-18 Thread Rodrigo
On Thu, Mar 18, 2010 at 2:57 PM, nhyda nhydanh...@gmail.com wrote: Thank you anyway. I think I figure it out, it is just matter in what order you put all the { [ (. Do you really need to create the has_many relationship and do a join? I would just search in table 2 like this: my $rs =

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

2010-03-18 Thread nhyda
On Thu, Mar 18, 2010 at 11:39 AM, Rodrigo rodrigol...@gmail.com wrote: On Thu, Mar 18, 2010 at 2:57 PM, nhyda nhydanh...@gmail.com wrote: Thank you anyway. I think I figure it out, it is just matter in what order you put all the { [ (. Do you really need to create the has_many

[Catalyst] using uri_for to parsing parameters

2010-03-18 Thread nhyda
I don't know whether someone has asked it yet. here is my situation. I have an action find that take one argument of book id and I have another action author that chained to find so in practice I use /find/1/author to list all the authors of book 1. now I want to capture the book id use form

[Catalyst] Template::Toolkit - how to dump/view simplified stash in TT?

2010-03-18 Thread Chris M
To give a little detail, I'm grabbing lots of related info from a DB all in one query using DBIx::Class. I am passing the object directly to the stash for processing in TT so I don't have to iterate through all that data, pick out the pieces, and store seemingly redundant information. This works

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

2010-03-18 Thread Tomas Doran
nhyda wrote: any suggestion for improvement is well welcome. Yes, and you're more likely to get them by ASKING ON THE RIGHT LIST. Still. Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo:

[Catalyst] Managing errors - cut execution flow.

2010-03-18 Thread David
Hi, I am not sure how to manage errors in my Catalyst application. When I detect an error, I forward the error to my Error View, but the execution doesn't stop. When my application was not in Catalyst, I used exit 1; once I had done forward to my Error View, but this doesn't work in my

Re: [Catalyst] Managing errors - cut execution flow.

2010-03-18 Thread Eden Cardim
On Thu, Mar 18, 2010 at 3:03 PM, David oldskif...@yahoo.es wrote: Hi, I am not sure how to manage errors in my Catalyst application. When I detect an error, I forward the error to my Error View, but the execution doesn't stop. When my application was not in Catalyst, I used exit 1; once I

Re: [Catalyst] Managing errors - cut execution flow.

2010-03-18 Thread J. Shirley
On Thu, Mar 18, 2010 at 10:03 AM, David oldskif...@yahoo.es wrote: Hi, I am not sure how to manage errors in my Catalyst application. When I detect an error, I forward the error to my Error View, but the execution doesn't stop. When my application was not in Catalyst, I used exit 1; once I

RE: [Catalyst] using uri_for to parsing parameters

2010-03-18 Thread Mesdaq, Ali
“so how do I parse the $book_id if I don't want to hard code the URL.” I am a little confused by that statement. What do you mean parse $book_id you already know the book_id. Are you basically trying to redirect the user back to the URL they came from? Thanks,

Re: [Catalyst] using uri_for to parsing parameters

2010-03-18 Thread J. Shirley
On Thu, Mar 18, 2010 at 9:38 AM, nhyda nhydanh...@gmail.com wrote: I don't know whether someone has asked it yet. here is my situation. I have an action find that take one argument of book id and I have another action author that chained to find so in practice I use /find/1/author to list