Code works in console, but not in controller!

Printable View