iframe src yii


(Manstersm) #1

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 ?


(Mhitchy Silvz) #2

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


(Yury Tolochko) #3

Hi,

Why not just


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

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