[Catalyst] RFC on how to structure controllers

A. Pagaltzis pagaltzis at gmx.de
Tue Jun 13 21:42:52 CEST 2006


* Gert Burger <gburger at mweb.co.za> [2006-06-13 12:35]:
> I would like some ideas on how todo the following in cat.

In general, the web way is to make as much state as possible
explicit in the URI. Avoid the use of sessions and cookies
wherever possible, try your darndest to use information from the
URI instead. (Also make sure to return appropriate HTTP status
codes when handling arbitrary URIs, instead of just saying 200 OK
to everything.)

Whether you put the information in the URI into the query string
or into the path is not that important in terms of webarch; the
main advantage of using the path part is simply that it looks
prettier.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



More information about the Catalyst mailing list