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?

like

<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 :)

Hi,

Why not just


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

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