Welcome Guest, Not a member yet? Register   Sign In
How to troubleshoot code in a model?
#7

[eluser]Otemu[/eluser]
What I meant was in your code if you have something like this

//my model

function someModel(){
//hey run some query
return $somequery;
echo $somequery . 'success i can see my model echo';
}

The echo won't work as it after the return, you would need to put it before, also maybe view the source within your browser and look for the word just in case the word has been outputted but you can't see it. Apart from that not sure why else you couldn't echo through the model unless you paste your code. Try a simple test, call a model function and just have a echo statement within it and see what happens.


Messages In This Thread
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 12:27 AM
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 01:39 AM
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 02:47 AM
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 03:01 AM
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 03:06 AM
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 03:21 AM
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 03:53 AM
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 04:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB