Jump to content

Error Messages


Robbieg

Recommended Posts

Hey all,

 

I'm developing a module for WHMCS, and would like to know how to display error message's as the other Modules do.

 

At the present time i use a die statement in the php code, but would like the page to continue to load, but stop doing the actions and display the error message as it does in other server modules.

 

can anyone provide the code?

Link to comment
Share on other sites

  • 10 months later...

Hm.. I'd like to refresh this topic. In ModuleDevKit sample code it's desired to be working as returning custom string message on error or "success" if everything went correct. But in recent version of WHMC (4.2.1) it doesn't seem to be working. So how can I throw errors and interrupt module action in custom server module :?:

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