Welcome Guest, Not a member yet? Register   Sign In
how to call function in different module?
#10

(This post was last modified: 01-22-2018, 08:39 AM by jreklund.)

view() makes your site display html and later on you force the page to output it as json instead ( with output() ). And therefore your browser thinks you want json and don't actually decode the site.

No, you need to use different functions or;
Add a parameter to your function and make an if/else statement
Check if it's an AJAX request if/else statement
Reply


Messages In This Thread
RE: how to call function in different module? - by jreklund - 01-22-2018, 08:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB