lib/MyAppDB is where you define your schema (your relations etc.) and lib/MyAppDB/Model is where you'd use them.<br><br>The latest long discussion on where your model should be is basically .... if your model is only fixed to the web application (blog etc), whack your model in lib/MyAppDB/Model. If, on the other hand your model will serve other functionality, then the model should be separate from the web application and lib/MyAppDB/Model should be used as a thin wrapper to this model.<br><br>Check out the discussion here ... it's a long link and goes off at different angles but you should get the idea.<br><br>http://readlist.com/lists/lists.rawmode.org/catalyst/1/7614.html<br><br>Have a look at this for another angle<br><br>http://www.teambarry.com/?p=38<br><br>I hope this helps.<br><br>-Ants<br><br><br><br><b><i>mla &lt;maurice.aubrey@gmail.com&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left:
 5px;"> I just finished getting the tutorial project working.<br><br>The thing I'm not clear on is this separation between lib/MyAppDB/<br>and lib/MyApp/Model/<br><br>The tutorial says:<br><br>"With Catalyst::Model::DBIC::Schema you essentially end up with two sets <br>of model classes (only one of which you write... the other set is <br>created automatically in memory when your Catalyst application <br>initializes). For this tutorial application, the important points to <br>remember are: you write the result source files in MyAppDB, but within <br>Catalyst you use the automatically created model classes in MyApp::Model."<br><br>So using DBIC::Schema, I would never create anything within the<br>lib/MyApp/Model directory, other than the MyAppDB.pm module?<br><br>All the real models live in lib/MyAppDB? And if I wanted to use a<br>model *outside* catalyst, I'd use MyAppDB::Book, but within<br>catalyst it would be MyApp::Book?<br><br>Is this how most of you structure your
 projects? Is there a way<br>to get the real models in lib/MyApp/Model?<br><br>Thanks.<br><br><br>_______________________________________________<br>List: Catalyst@lists.rawmode.org<br>Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst<br>Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/<br>Dev site: http://dev.catalyst.perl.org/<br></blockquote><br><p>&#32;
                <hr size=1> 
<a href="http://us.rd.yahoo.com/mail/uk/taglines/default/nowyoucan/spam_1gb/*http://us.rd.yahoo.com/evt=40565/*http://uk.docs.yahoo.com/nowyoucan.html">Inbox full of unwanted email?</a> Get leading protection and 1GB storage with All New Yahoo! Mail.