Skip to content

Commit

Permalink
Make it clearer how to override onMissingView()
Browse files Browse the repository at this point in the history
  • Loading branch information
seancorfield committed Jan 2, 2013
1 parent 905c0c5 commit d167e26
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions org/corfield/framework.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -629,11 +629,12 @@ component {
* this can be overridden if you want to change the behavior when
* FW/1 cannot find a matching view
*/
public void function onMissingView( struct rc ) {
public string function onMissingView( struct rc ) {
// unable to find a matching view - fail with a nice exception
viewNotFound();
// if we got here, we would return the string to be rendered
// but viewNotFound() throws an exception...
// for example, return view( 'main.missing' );
}

/*
Expand Down Expand Up @@ -1882,7 +1883,7 @@ component {
if ( !structKeyExists( variables.framework, 'trace' ) ) {
variables.framework.trace = false;
}
variables.framework.version = '2.1RC1';
variables.framework.version = '2.1RC2';
setupFrameworkEnvironments();
}

Expand Down

0 comments on commit d167e26

Please sign in to comment.