[Catalyst] how to reuse Catalyst Schema for non-web purposes?
Simon Wilcox
simonw at digitalcraftsmen.net
Wed Apr 22 14:30:05 GMT 2009
On 22/4/09 14:52, Matt S Trout wrote:
> On Wed, Apr 22, 2009 at 02:41:34PM +1000, kakimoto at tpg.com.au wrote:
>
>> I just looked at my app and found that I need to reuse the Schema
>> files found in my 'Schema' directory.
>
> Your DBIC classes aren't connected to the Catalyst app at all.
Unless you've fallen into the trap of putting business logic in your
Controller classes.
See this as a good opportunity to refactor the logic back into the
Schema classes where it belongs (or to a set of business objects if that
suits your application better).
Your code will be better for it :-)
S.
More information about the Catalyst
mailing list