Raymond Pittman Posted October 4, 2014 Share Posted October 4, 2014 I'm having trouble on what exactly i have to return to the end if else statement.... so when i click create module it says green success writing in the admin section... <?php function ciery_CreateAccount($params) { # Code to perform action goes here... if ($successful) { $result = "Success"; } else { $result = "Error Message Goes Here..."; } return $result; } ?> i tried <?php return('success'); return 'success'; return; ?> 0 Quote Link to comment Share on other sites More sharing options...
mbit Posted October 5, 2014 Share Posted October 5, 2014 return array( 'status' => 'success', 'description' => 'Whatever...' ); 0 Quote Link to comment Share on other sites More sharing options...
Raymond Pittman Posted October 7, 2014 Author Share Posted October 7, 2014 $result = "success"; $return $result; I like this a little better 0 Quote Link to comment Share on other sites More sharing options...
mbit Posted October 7, 2014 Share Posted October 7, 2014 And you're correct, because i didn't read your question with understanding so i gave you an answer for the question i wanted to see, obviously. That's a return for the addon module activation i gave you... which is something i use on a regular basis. Déformation professionnelle, i guess. Sorry for that 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.