iframe src yii

Good Day,

I am wondering if its possible in yii to make an iframe with the src is created by the controller?


<iframe src=" [i]controller/action[/i]"></iframe>

i want to load a page inside my iframe when visible.

and somehow can i render it with css ?

i also have the same problem…can someone help us…thanks in advance :)


Why not just

<iframe src="<?php echo $this->createUrl('controller/action');?>"></iframe>

It would be rendered as usual with css and so on.