<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Mar 20, 2008, at 12:12 PM, Devin Austin wrote:</div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">I was playing around the other day when I tried to create a simple controller with out using the Catalyst.pl helper script.  It wasn't loaded when I restarted my devel server, so I figured that there must be a dispatch table somewhere storing the names of the Controller files, and that table is edited by the helper script.<br><br>Is this correct? Or is there some other method used to create controllers? Also, does one *have* to use the helper script to create controllers/models/views?</span></blockquote></div><br><div>There's no dispatch table outside of the Controller tree. You don't have to use the helpers at all but you do have to include an attribute declaration for actions to be found. Making a controller of Foo.pm with an action of bar-</div><div><br class="webkit-block-placeholder"></div><div>This won't be found-</div><div>sub bar {}</div><div><br class="webkit-block-placeholder"></div><div>This will be (at /foo/bar)-</div><div>sub bar : Local {}</div><div><br class="webkit-block-placeholder"></div><div>You also don't need to manually restart the dev server if you launch it with the -r flag. It will pick-up changes in your tree and restart for you.</div><div><br class="webkit-block-placeholder"></div><div>One of the main advantages, to me, of the helpers is that they stub tests for you.</div><div><br class="webkit-block-placeholder"></div><div>-Ashley</div></body></html>