papoyan Posted May 5, 2010 Share Posted May 5, 2010 Hi, I'm working on a custom module, and having a problem understanding how to retrieve clients information from clientsdata and configarray arrays : function wapple_ConfigOptions() { # Should return an array of the module options for each product - maximum of 24 $configarray = array( "Package ID" => array( "Type" => "dropdown", "Options" => "20,29,30,31"), ); return $configarray; } $plan_id = $configarray["Type"]; --- This doesn't seem to be working --- and $clientsdetails = $params["clientsdetails"]; # Array of clients details - firstname, lastname, email, country, etc... $myfirstname = $clientsdetails['firstname'], $mylastname = $clientsdetails['lastname'], $myemail = $clientsdetails['email'], -- These also don't have a values--- However if I retrieve from a variable and NOT array, I don't have a problem : $myserverusername = $serverusername = $params["serverusername"]; -- This one works just fine -- Could you guys help me out here, what am I doing wrong? Thank you in advance, 0 Quote Link to comment Share on other sites More sharing options...
Zeon Posted December 28, 2010 Share Posted December 28, 2010 Hi, I'm working on a custom module, and having a problem understanding how to retrieve clients information from clientsdata and configarray arrays : function wapple_ConfigOptions() { # Should return an array of the module options for each product - maximum of 24 $configarray = array( "Package ID" => array( "Type" => "dropdown", "Options" => "20,29,30,31"), ); return $configarray; } $plan_id = $configarray["Type"]; --- This doesn't seem to be working --- and $clientsdetails = $params["clientsdetails"]; # Array of clients details - firstname, lastname, email, country, etc... $myfirstname = $clientsdetails['firstname'], $mylastname = $clientsdetails['lastname'], $myemail = $clientsdetails['email'], -- These also don't have a values--- However if I retrieve from a variable and NOT array, I don't have a problem : $myserverusername = $serverusername = $params["serverusername"]; -- This one works just fine -- Could you guys help me out here, what am I doing wrong? Thank you in advance, Hi, At the end of this line $mylastname = $clientsdetails['lastname'], Your using a command instead of a semicolon. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.