Because this topic is not solved, and I had the same problem, and did find the (simple!) solution.
There are two ways to make it work. The first, not preferred:
The helper :
<?php
class TinyMVC_Script_Myhelpers {
function anchor($url, $text) {
return "<a href=\"$url\">$text</a>";
}
}
The controller :
$this->load->script('myhelpers');
The view :
<p><?php
echo TinyMVC_Script_Myhelpers::anchor($output,'this is a link');
?></p>
The better way, as it should be:
The helper :
<?php
function anchor($url, $text) {
return "<a href=\"$url\">$text</a>";
}
The controller :
$this->load->script('myhelpers');
The view :
<p><?php
echo anchor($output,'this is a link');
?></p>
Conclusion: use no class-definition in the helper script!
grx, Evert