[eluser]LuckyFella73[/eluser]
It's not related to CI as far as I know. When you call a function
declared later having everything on "one level" it works but not
inside a function.
Try this as "normal" php file on your server - it wont'work:
Code:
<?php
foo();
function foo()
{
echo "foo";
doSomething();
function doSomething()
{
echo "bar";
}
}
?>
"foo" is echoed but when the doSomething function is called it's
not seen.
All on "one level" works:
Code:
<?php
echo "foo";
doSomething();
function doSomething()
{
echo "bar";
}
?>