Jump to content

Module Provisioning - RETURN SUCESS? Im having trouble PHP


Recommended Posts

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;
?>

Link to comment
Share on other sites

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 :oops:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated