New Annotations: @params and @methods

1 view
Skip to first unread message

Tony Nelson

unread,
May 26, 2011, 7:32:16 AM5/26/11
to ColdMVC
Just wanted everyone to know I added 2 new annotations to controllers.

@params: Allows you to specify the required params for an action.
http://www.coldmvc.com/annotations/params

@methods: Allows you to specify the allowed request methods (GET,
POST, etc...) for an action. http://www.coldmvc.com/annotations/methods

I'll try to better document things better as they are released. Sorry
I've been slacking lately.

PS - if you didn't know, you can define an ErrorController that will
automatically be invoked if an error occurs when the event is being
dispatched. Currently the ErrorController will attempt to render a
single /error/index.cfm view, but I plan on updating it to render
status-code specific views (/error/404.cfm) if they exist. Again, none
of this is documented yet...

Reply all
Reply to author
Forward
0 new messages