title: Codeigniter controller, javascript console.log()
body: <p>Is there a (simple) way to echo some variables from a Codeigniter controller to the browser console?</p>
  
  <p>Something like</p>
  
  <pre><code>public function my_controller_method() {
     if (testing_out_something) {
        $result = "looks like it works";
        $this-&gt;log_to_javascript_console-&gt;write($result);
     }
  }
  </code></pre>
  
  <p>I saw <a href="http://codeigniter.com/user_guide/libraries/javascript.html" rel="nofollow">this javascript class</a> but it looks like it's more for jQuery, I just want to do something simple for debugging purposes.</p>
  
  <p>I guess another way would be to send it to a view, but I don't want my view to change at the moment, I just want to make sure my data is being sent.</p>