Yii Framework Forum: How create a component and pass some values to it - Yii Framework Forum

Jump to content

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

How create a component and pass some values to it Rate Topic: -----

#1 User is offline   GodFather 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 91
  • Joined: 19-July 09

Posted 26 December 2009 - 01:29 PM

Hi guys,
I intend to create a component but I need to pass some values to it (like current model and controller, maybe a query output), I need this to generate some things based on database output.

How can I create a component and pass values to it?
Thanks.
0

#2 User is offline   Sander 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 169
  • Joined: 03-November 09
  • Location:Amsterdam, Netherlands

Posted 29 December 2009 - 04:24 AM

Check the docs for how to use widgets, that's probably what you need.
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