(Pardon the lack of quoting, GMail is flaking out on me)<br><br>Re: attributes<br>Aha. I think that's where I went wrong.<br><br>Re: test stubs<br>Agreed, however in a situation when I'm on my laptop (most of the day while I'm away from my room with my "real" computer) and I don't want to put myself through the pain of installing perl and Catalyst on Windows, I'd like to be able to create new controllers if need be so I don't have to limit development to my location.<br>
<br>Anyway, thanks for the response. Much easier than trying to grok the murky depths that the Catalyst code appears as to me :-)<br><br>-Devin<br><div class="gmail_quote">On Thu, Mar 20, 2008 at 1:21 PM, Ashley <<a href="mailto:apv@sedition.com">apv@sedition.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style=""><div class="Ih2E3d"><div><div>On Mar 20, 2008, at 12:12 PM, Devin Austin wrote:</div>
<blockquote type="cite"><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; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">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><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 <a href="http://Foo.pm" target="_blank">Foo.pm</a> with an action of bar-</div>
<div><br></div><div>This won't be found-</div><div>sub bar {}</div><div><br></div><div>This will be (at /foo/bar)-</div><div>sub bar : Local {}</div><div><br></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></div><div>One of the main advantages, to me, of the helpers is that they stub tests for you.</div><div><br></div><font color="#888888"><div>-Ashley</div></font></div><br>_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Devin Austin<br>Founder and Head Developer of CodedRight.net<br><a href="http://www.codedright.net">http://www.codedright.net</a> - get your web app Coded Right<br><a href="http://www.dreamhost.com/r.cgi?326568/hosting.html">http://www.dreamhost.com/r.cgi?326568/hosting.html</a> - Host with DreamHost!