Welcome Guest, Not a member yet? Register   Sign In
Basic controller problem help
#1

[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>';
    }
}
?&gt;

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


Messages In This Thread
Basic controller problem help - by El Forum - 04-07-2008, 12:11 PM
Basic controller problem help - by El Forum - 04-07-2008, 12:17 PM
Basic controller problem help - by El Forum - 04-07-2008, 01:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB