Welcome Guest, Not a member yet? Register   Sign In
Why is a bad practice to use "echo" in Controllers?
#1

[eluser]Crackz0r[/eluser]
Hello, i want to know why its a bad practice to use echo in the controllers?

Since i have some problems to make jQuery works when i have a Boolean as response... i mean, in success from ajax function of jquery, i need to get a test, but since the TRUE and FALSE are not taken by jquery...

What may happens if i use echo to print some text to lets jquery read the response for a ajax request?


Tyvm




Theme © iAndrew 2016 - Forum software by © MyBB