title: Undefined function when calling extended helper function in Codeigniter
body: <p>I create <code>MY_form_helper.php</code> in <code>application/helpers/</code>, extending <code>form_helper.php</code>. The function is like this:</p>
  
  <pre><code>function alert($message,$type = 'success'){
      $data = array(
          'type' =&gt; $type,
          'text' =&gt; $message
      );
      return json_encode($data);
  }
  </code></pre>
  
  <p>In my controller I call the function like this:</p>
  
  <pre><code>$this-&gt;load-&gt;helper(array('form', 'url'));
  echo alert('Wrong email or password');
  </code></pre>
  
  <p>but it gives me an error</p>
  
  <pre><code>Message: Call to undefined function alert()
  </code></pre>
  
  <p>so what am I missing or doing wrong here? </p>