Yii Framework Forum: iframe src yii - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

iframe src yii iframe src yii Rate Topic: -----

#1 User is offline   lstrjstr 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 14
  • Joined: 16-August 11

Posted 18 September 2011 - 10:08 PM

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=" controller/action"></iframe>

i want to load a page inside my iframe when visible.
and somehow can i render it with css ?
0

#2 User is offline   mhitch 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 23-November 11

Posted 06 December 2011 - 12:49 AM

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

#3 User is offline   Weavora Team 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 141
  • Joined: 06-December 10

Posted 06 December 2011 - 03:27 AM

Hi,

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


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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users