<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">I&#39;ve been coding in Perl for years, but I&#39;m still pretty new to Catalyst, so please excuse the newbie question.</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><span style="font-family:arial,sans-serif;font-size:13px">I&#39;m putting together a Catalyst application which uses Calalyst::Controller::DBIC::</span><span style="font-family:arial,sans-serif;font-size:13px">API::REST to interface with the database.</span><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">So, in lib/MyApp/Controller/ there are a bunch of files of the form {Table}.pm, which each consists of basically a __PACKAGE__-&gt;config() call setting various things, including create_requires, create_allows and so on.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Simple question: Several of these tables require status etc. to be set heardwired in code, and several of the others have some business logic which needs to take place on e.g. creation.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">What&#39;s the canonical way to do this? I&#39;m guessing it means defining a begin method, but I&#39;d really like to know the &quot;proper&quot; way to do this. Can&#39;t see this anywhere in the docs (unless I&#39;m looking in the wrong place), but it&#39;s such a common occurrence it *must* be a FAQ.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Thanks in Advance.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
Andy Holyer, Brighton, UK</div></div>