Yii Framework Forum: Inserir Html No Detailview - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Inserir Html No Detailview Rate Topic: -----

#1 User is offline   Eliedson Holanda 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 33
  • Joined: 17-November 11

Posted 08 February 2013 - 09:13 AM

Gente, estou precisando inserir uma div no detailview, mas não sei como inserir. Alguém poderia me ajudar ?
0

#2 User is offline   Newerton 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 824
  • Joined: 27-April 10
  • Location:Campo Grande/MS - Cambé/PR, Brasil

Posted 11 February 2013 - 08:58 PM

eddie,

Tenta usar mais ou menos assim:

array(
    'name' => 'titulo',
    'type' => 'raw',
    'value' => '"<div style=\"background:#FF000\">Teste</div>"',
),


Veja se irá funcionar! O macete é usa o type => raw OU type => html, uso sempre o RAW, que ele renderiza inputs nas colunas também.
Newerton Vargas de Araújo
0

#3 User is offline   Eliedson Holanda 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 33
  • Joined: 17-November 11

Posted 14 February 2013 - 07:37 AM

Funcionou, cara. Valeu!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

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