title: Problems using a Wiki to HTML script (FFNN) as Helper in CodeIgniter
body: <p>I've found this <a href="http://www.ffnn.nl/pages/projects/wiki-text-to-html.php" rel="nofollow">script</a> for converting wiki syntax to HTML in php and i've tried to integrate it into <strong>Codeigniter</strong>. it seems really easy to use. However, it's not working, and instead producing around 8 of these errors:</p>
  
  <pre><code>Message: Use of undefined constant LS_NONE - assumed 'LS_NONE' 
  </code></pre>
  
  <p>I think this is because Codeigniter helpers are not a class but rather functions, and this bit of code is a class, or does this issue lie with something else? I've also tried to use it as a model without success.</p>
  
  <p>It also seems horribly outdated (2007). Could somebody suggest a really simple alternative or maybe give an idea of how to convert this to a simple function if that is possible? It's a very short piece of code. I'm not sure how these constants work in relationship to a function versus a class.</p>
  
  <p>I've given the Text_Wiki from Pear ago, but the use and complexity well exceeds both my requirements and knowledge :)</p>
  
  <p>//Any help would be greatly appreciated</p>
  
  <p>Loaded using:</p>
  
  <pre><code>    $row = $query-&gt;row();
      $content=$row-&gt;course_content;
      $this-&gt;load-&gt;helper('wiki');
      $content=explode("\n", $content);               
      $output = WikiTextToHTML::convertWikiTextToHTML($content);
      $html=array_merge($output);
      $data['contents'][]= $html;
      $this-&gt;load-&gt;view('default/a',$data);
  </code></pre>