Yii Framework Forum: Property "tbmenu.itemcssclass" Is Not Defined - Yii Framework Forum

Jump to content

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

Property "tbmenu.itemcssclass" Is Not Defined Weird error with TbMenu Rate Topic: -----

#1 User is offline   DanEdge 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 16
  • Joined: 06-July 11

Posted 12 September 2012 - 04:40 PM

Hi Folks,
I'm getting this error with the latest version of the bootstrap extension when using the TbMenu widget
Property "TbMenu.itemCssClass" is not defined

Everything worked fine before I upgraded to the latest version of the extension and if I comment out the two relevant lines in TbBaseMenu everything seems to work as expected (so far, anyway).
if ($this->itemCssClass !== null)
   $classes[] = $this->itemCssClass;

Also, I don't get the error on my local machine, only on a live server. Does anyone have any ideas what's going on?
0

#2 User is offline   stereochrome 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 15-August 11

Posted 24 September 2012 - 03:49 AM

Same problem here. Installed the extension on a fresh webapp. Maybe i can have a deeper look inside later.
0

#3 User is offline   Scott Deagan 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 70
  • Joined: 04-February 10

Posted 17 October 2012 - 09:05 AM

Just throwing a "me too" in here.
0

#4 User is offline   Soumya Dev 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 20-November 11

Posted 20 November 2012 - 01:54 AM

same type of exception when running
Button dropdown menus

Property "TbDropdown.itemCssClass" is not defined.
0

#5 User is offline   phpguy 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 24-April 11
  • Location:Myrtle Beach, SC

Posted 30 December 2012 - 11:58 AM

Same here. Added a isset to avoid the issue.
if (isset($this->itemCssClass) && $this->itemCssClass !== null)
     $classes[] = $this->itemCssClass;

Life can only be understood backwards; but it must be lived forwards.
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