Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Undefined property: stdClass::$color 01 Nov 2013 13:56 #11510

  • ewajoom
  • ewajoom's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 36
  • Thank you received: 2
Hi,

After generation/installation of component, I've got messages :
Undefined property: stdClass::$color in /Applications/XAMPP/xamppfiles/htdocs/uved4/administrator/components/com_XXX/dom/html/form/input/select/radio.php on line 124
$options['color'] = $item->$colorKey;

If it can help anyone, I've changed it with a color :
$options['color'] = '#000';

Please Log in or Create an account to join the conversation.

Undefined property: stdClass::$color 01 Nov 2013 18:37 #11513

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Thanks

Fixed.
$options = array();
if ($colorKey && isset($item->$colorKey))
	$options['color'] = $item->$colorKey;
Coding is now a piece of cake
The following user(s) said Thank You: ewajoom

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.115 seconds

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started