[eluser]Unknown[/eluser]
I have set up a controller called testme.php that contains the following code:
Code:
<?php
class Testme extends Controller
{
function index()
{
echo '<p>index function</p>';
_myFunc();
}
function _myFunc()
{
echo '<p>private function called from index function</p>';
}
}
?>
I access this using
Code:
http://www.mydomain.com/index.php/testme/
I would expect this to render the following:
Code:
<p>index function</p>
<p>private function called from index function</p>
However, it does not. It renders only
Code:
<p>index function</p>
Am I just misunderstanding how this should work, or is something broken?
Thanks,
Philip