How do you append a parameter to an URL in a controller action?

Can you do modify an url from the controller and modify the current URL? For instance, in the method actionCreate of MainController.php.

com/products/index.php?app=crm&module=post&section=post&do=new_product&f=29

I want to add ‘&lock=3841’ to the url, which gives:

com/products/index.php?app=crm&module=post&section=post&do=new_product&f=29&lock=3841

Are you looking for redirect?

http://www.yiiframework.com/doc/api/1.1/CController#redirect-detail