Using the curent user id ( loged ) in CRUD

Hi guys , im making a news site and i need to get the current user id in the form to send it instead of completing it manualy

Why put it in a form (client side) in the first place? Need it edited by the user? (not really, most likely). Take it from server side, not client side. How about getting it when needed to, from Yii::app()->user->id ?

See more here: http://www.yiiframework.com/doc/guide/1.1/en/topics.auth