[SP-pm] Catalyst+DBIx::Class - plugando schemas

eutsiv :: Geovanny Junio geovanny at eutsiv.com.br
Mon May 30 04:15:04 PDT 2011


>
> Escrevi um post no meu blog para responder tua pergunta:
> http://bit.ly/ls3dI8
>
>
Não tive tempo de implementar tudo que sugeriu no post ainda Eden, mas da
parte fiz tive problema em duas coisas:

- Usando o setup_components da forma que você indicou gerou problemas para
carregar os plugins do Catalyst ( I18N, Authentication, etc... ), então
utilizei o setup_components da seguinte forma:
MyApp->config( setup_components => { search_extra => [qw(
MyApp::Plugin::Controller )] }); # funcionou corretamente

- Os módulos do namespace MyApp::Plugin::Controller foram carregados, mas ao
tentar usar o before base => sub {}, tenho o seguinte erro em tempo de
compilação: The method 'base' was not found in the inheritance hierarchy for
MyApp::Plugin::Controller::Teste;

Ainda não tentei fazer a parte do DBIx::Class, assim que tentar, se
encontrar algum erro te reporto.

Grato,



> --
>   Eden Cardim       Need help with your Catalyst or DBIx::Class project?
>  Code Monkey                    http://www.shadowcat.co.uk/catalyst/
>  Shadowcat Systems Ltd.  Want a managed development or deployment platform?
> http://blog.edencardim.com/            http://www.shadowcat.co.uk/servers/
> http://twitter.com/#!/edenc
> =begin disclaimer
>   Sao Paulo Perl Mongers: http://sao-paulo.pm.org/
>  SaoPaulo-pm mailing list: SaoPaulo-pm at pm.org
>  L<http://mail.pm.org/mailman/listinfo/saopaulo-pm>
> =end disclaimer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/saopaulo-pm/attachments/20110530/34be2827/attachment.html>


More information about the SaoPaulo-pm mailing list