[Catalyst] Catalyst::Controller::FormBuilder config problem
Michael Reece
mreece at vinq.com
Thu Dec 21 18:05:19 GMT 2006
be wary of putting your base controller class in the MyApp/
Controller/ directory, because catalyst will load it as a controller
itself. which sucks if you want to put default inheritable actions
in your base class. i use MyApp/Controller.pm for the base class to
avoid this problem, since catalyst still, as far as i can tell, has
no way to let you specify which controller classes to load or not load.
On Dec 21, 2006, at 6:54 AM, Juan Camacho wrote:
> On 12/21/06, Ulrich Leodolter <ulrich.leodolter at univie.ac.at> wrote:
>> Hi,
>>
>> The config method as described in Catalyst::Controller::FormBuilder
>> doesn't work for me.
>>
>> in MyApp.pm
>>
>
> RTM.
>
> You have the config options in the wrong place. Put them in your
> Controller class -- not in MyApp.pm. I recommend you create a
> MyApp::Controller::Base class and put it there and then have your
> controller's inherit from it.
>
> I tested the stylesheet option with the latest version
> CGI::FormBuilder and Catalyst::Runtime and it works for me.
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/
> catalyst at lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
---
michael reece :: software engineer :: mreece at vinq.com
More information about the Catalyst
mailing list