[eluser]Unknown[/eluser]
Hi all:
I am new to CI and php. I am working on a project that needs a set of common functions to format data. I did the prototype with the functions in the controller. I them moved them to a file "lbfile_helpers.php":
<?php
function timestamp()
{
return date(”Y-m-d H:i

”);
}
?>
when I try to call this from a form via submit and a route I get:
Fatal error: Call to undefined method Lblanding::timestamp() in /Users/richard/Sites/CI/system/application/controllers/lblanding.php on line 163
If the function is declared in the class, everything works.
I am sure this is a simple error, but I have tried everything I can think of.
Thanks
Richard