Re: [Catalyst] Reuse of controllers

2010-09-20 Thread David Schmidt
On Mon, Sep 20, 2010 at 4:33 AM, John Romkey rom...@apocalypse.org wrote: On Sep 19, 2010, at 10:02 PM, Pavel A. Karoukin wrote: I started to play more often with Catalyst framework and found that I often need to re-use some controllers logic. What the best DRY way to deal, for example, with

Re: [Catalyst] Reuse of controllers

2010-09-20 Thread Pavel A. Karoukin
On Mon, Sep 20, 2010 at 1:46 AM, David Schmidt davew...@gmx.at wrote: On Mon, Sep 20, 2010 at 4:33 AM, John Romkey rom...@apocalypse.org wrote: On Sep 19, 2010, at 10:02 PM, Pavel A. Karoukin wrote: I started to play more often with Catalyst framework and found that I often need to re-use

[Catalyst] best practices for handling forms?

2010-09-20 Thread E R
Hi, I am curious what everyone thinks as being the best practices for handling forms in Catalyst. Are there any Catalyst applications you have run across which are good examples of how to use Catalyst's features to handle forms? To illustrate what I am getting at, below is typical Rails (v2)

Re: [Catalyst] best practices for handling forms?

2010-09-20 Thread Hernan Lopes
perl Catalyst Forms with Formhandler and Thickbox: You know you dont always need a template.tt2 file... this is useful with ajax (especially with thickbox) so you can pass a scalar as template, so you end up with: $c-stash( template = $form-render, current_view = 'Ajax', ); 1. You could create

Re: [Catalyst] best practices for handling forms?

2010-09-20 Thread Hernan Lopes
correction: you can pass a reference to $c-stash(template = \'foobas'), so you end up with: $c-stash( template = \$form-render, current_view = 'Ajax', ); On Mon, Sep 20, 2010 at 8:09 PM, Hernan Lopes hernanlo...@gmail.com wrote: perl Catalyst Forms with Formhandler and Thickbox: You know you

Re: [Catalyst] best practices for handling forms?

2010-09-20 Thread Hernan Lopes
Ohh, by the way, if you need to write html into the form, you can also do it without any TT view file. With Formhandler it is very simple, just use the field of type 'Display', for example: has_field 'display0' = ( type = 'Display', html = ' div class=clearh1

Re: [Catalyst] Reuse of controllers

2010-09-20 Thread Eden Cardim
Pavel == Pavel A Karoukin pa...@yepcorp.com writes: Pavel I got the basics from t0ms blog Pavel (http://bobtfish.livejournal.com/#post-bobtfish-264317) An Pavel example how i use it can be found here Pavel

[Catalyst] Defining ARRAY in Config::General config

2010-09-20 Thread Pavel A. Karoukin
Hello, I am using Catalyst::Plugin::Mail and want to define email config in myapp.conf. But C::P::Mail expects email config variable to be array ref. How I can assign array value to config variable in myapp.conf? Regards, Pavel ___ List: