To override a view you can use the "after_action" hook.
Here is an example:
Hook::register("your_hook_name");
function your_hook_name_after_action($args, &$ret) {
$controller = array_var($args, 'controller');
$action = array_var($args, 'action');
if ($controller instanceof TaskController && $action == 'add_task') {
$controller->setTemplate('new_add_task');
}
}
Here for the action "add_task" the template will be overriden by the new php file "new_add_task.php" which must be located in the folder "application/views/task/".
For more information about the available hooks and its specification you can look at the file "application/hooks/opengoo_hooks.php".
regards