Well, without error messages I have no idea what your real problem is. I do have some suspicions though, which I have detailed below. Next time you post something like this, include the errors you are getting (no matter how large) it will go a long way in helping us help you solve your problem.

package MyApp::Schema::Result::Item; use Moose; extends 'DBIx::Class::Core';
You have already been told that this approach is not advised, you should be using DBIx::Class as it was intended.

package MyApp::Model::MD; use Moose; use base 'Catalyst::Model::DBIC::Schema';
This doesn't make much sense here because you are using Moose then using base. I think what you really want here is:
package MyApp::Model::MD; use Moose; BEGIN { extends 'Catalyst::Model::DBIC::Schema' };
This is exactly the code I am using in my catalyst apps right now. If this still doesn't work, then I suspect it is because of how you are (ab)using DBIx::Class in MyApp::Schema::Result::Item and you should change that.

package MyApp::Controller::Item; use Moose; use base qw/Catalyst::Controller::FormBuilder/;
Again you have this mix of Moose and base, what you really want here is:
package MyApp::Controller::Item; use Moose; BEGIN { extends qw/Catalyst::Controller::FormBuilder/ };

-stvn

In reply to Re: Use Moose in Controller and Model by stvn
in thread Use Moose in Controller and Model by sman

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.