Getting back after forwarding to another controller function I want to assign a new user to a user group using a variable passed in the frontend registration form. I was going to listen for the OnSaveUser event but I don't think there's a way to get the usergroup from the original post that way(?) so I've instead created a controller that forwards to users/onSaveUser using:

$forward = $this-&gt;forward('users/saveUser', false);


The idea being I'll then have access to the post after the user has been created. The problem is everything ends here and doesn't reach the rest of my function. Here's my controller:

&lt;?php
namespace Craft;

class UserGroupController extends BaseController
{

    protected $allowAnonymous = true;

    public function actionSaveUser()
    {
        $this-&gt;requirePostRequest();


        $forward = $this-&gt;forward('users/saveUser', false);
        throw new Exception('Made It back!'); // never reached 
        return TRUE;
    }

}


According to the Yii docs, false should stop the things ending, right?
I have this working in another plugin calling another function:

$forward = $this-&gt;forward('commerce/products/saveProduct', false);


and it returns to the original controller fine. So, as Brad comments, the forward is actually working as expected but that particular UsersController-&gt;saveUser() function prevents it happening internally.

Within my particular example, I was able to access the original post request and access a userGroupId from the user registration form like so:

    craft()-&gt;on('users.onSaveUser', function (Event $event) {
        if ($event-&gt;params['isNewUser']) {
            if (isset($_POST['userGroup'])) {

                $userGroupId = $_POST['userGroup'];
                $user = $event-&gt;params['user'];

                craft()-&gt;userGroup-&gt;setUserGroup($user, $userGroupId);

            }               
        }
    });