Active form with relation attributes

having this…

	public function relations()


		return array(

			'post' => array(self::BELONGS_TO, 'Post', 'post_id'),



…is it possible to do something like this in an ActiveForm?:

<?php echo $form->textField($model,'post->attribute'); ?>

(and when clicking the button submit, it updates the table Post automatically)


i suggest that see this link:

My link

My link

My link

i hope useful

you can do this

<?php echo $form->textField($model->post, 'attribute'); ?>