Updates to Build 0.6 of FW/1
Just a brief note about three recent updates to FW/1, all courtesy of Ryan Cogswell - much appreciated!
0.6.1 fixes a long-standing bug in the handling of variables.framework.cfcbase. The intent was that you could specify both base and cfcbase configuration variables to specify the root-relative or mapped path to the views / layouts and controllers / services respectively. The base variable worked but cfcbase did not. That has been fixed so you can now have just Application.cfc and index.cfm in your webroot and all your views, layouts, controllers and services outside webroot, accessible via a mapping, or in a nested directory under the webroot. A new example, hello5, has been added to demonstrate this.
0.6.2 is a small refactoring that exposes two new API methods: getSection(action) and getItem(action). The logic behind these was duplicated in setupRequestWrapper() and service() - and Ryan said he had a use case where he wanted to be able to parse the action in the exact same way as the framework did.
0.6.3 is another small refactoring that exposes another new API method: getServiceKey(action). By default, this returns "data", the name of the request context key used for service return methods. If you override it, you can make it return a key based on the action (returning getSection(action) would be quite useful, I expect). This allows you to write more expressive code while maintaining the convention-based aspect of service handling.
The documentation will be updated shortly to reflect these changes, clarifying how to use base and cfcbase, and documenting the new methods (in the soon-to-be-completed Reference Manual).

There are no comments for this entry.
[Add Comment]