Development

Changeset 218

You must first sign up to be able to contribute.

Changeset 218

Show
Ignore:
Timestamp:
12/01/05 14:38:14 (3 years ago)
Author:
fabien
Message:

added action specific error handling

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/symfony/filter/sfExecutionFilter.class.php

    r130 r218  
    148148 
    149149        // validation failed 
    150         $viewName = $actionInstance->handleError(); 
     150        $handleErrorToRun = 'handleError'.ucfirst($actionName); 
     151        $viewName = method_exists($actionInstance, $handleErrorToRun) ? $actionInstance->$handleErrorToRun() : $actionInstance->handleError(); 
    151152      } 
    152153    }