Codeigniter app returns blank output in CLI Codeigniter app returns blank output in CLI codeigniter codeigniter

Codeigniter app returns blank output in CLI


I found the problem, it was a problem with a redirect('domain.com'); exit; I had on an autoloaded library, because it was matching against the domain in a database, that way CLI doesn't serve a domain when it detects, hence I included a redirect('domain.com') with an exit which is why I'm not seeing any output.


I also encountered this while i was playing w/ cli for codeigniter. It took me a while to troubleshoot the issue and found out that I forgot to except my controller on my login model which runs a redirect function.


This may be a silly suggestion, but might as well give it a shot... @lolwut, what if instead of using "echo", maybe you have to "return" the output?