External form action help

Hi, I have a form on “views/moderation/xx.php” and i want to submit this form to another controller’s action. I tried to set action=controllerid/action and createurl but it doesnt work…

form on views/moderation/xx.php and action on controllers/UpdateController.php

moderation also have a controller but i have to submit this form another controller

Thank you

check CHtml::normalizeUrl, CController::createUrl, CUrlManager::createUrl… use one of them.

CController::createUrl worked for me, Thank you ! :)

they all do pretty same, but have different scopes (it is hard to call CController::createUrl from widget for example or in module init method, I rather use CHtml or Yii::app()->urlManager in such case)