Yii Framework Forum: CTabView within extensions - Yii Framework Forum

Jump to content

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

CTabView within extensions Rate Topic: -----

#1 User is offline   Boris 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 05-December 08

Posted 09 December 2008 - 05:54 PM

Hi,

i am using the tabview within an extension / widget. Now the logic tries to open the views for the tabs defined in the properties array not as i expected from the extensions/views folder but from the main views folder.

This is not how the extension should work, right?

I hope you understand what i mean, otherwise i will post a detailed message...  :-\

bye
0

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,902
  • Joined: 04-October 08
  • Location:DC, USA

Posted 09 December 2008 - 06:00 PM

As the doc says: The view will be rendered using the current controller's renderPartial method.

In your case, you may use the 'content' property and call your widget's renderPartial method to assign the rendering result to this property.
0

#3 User is offline   Boris 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 05-December 08

Posted 09 December 2008 - 06:23 PM

Sorry, right after my post, i read the line with the controller in the doc.

I will try that later...

Thanks for your fast responds!!
Boris
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