Accessing a class method
<p>My class:</p>

<pre><code>class mvc {
    public function home () {
        return 'index';
    }
}
</code></pre>

<p>object:</p>

<pre><code>include "./sys/controller/".$Current_page_Controller_name.".php";

        // making object of the controller class.
            $controller = new $Current_page_Controller_name;

        // Cheks if model is called, m stands for "model"
            if (isset($_GET['m'])) {

            }

            $method_name = $mvc-&gt;$Current_page_Controller_name.'()';

    // Cheks if default model exists, if not gives an error.
        if (method_exists($controller, $method_name)) {
            echo "+";
        } else {
            echo "-";
            //die("Lappas sledzis saplisis, gaidiet drizuma... (2)");
        }
</code></pre>

<p>I keepgetting this error</p>

<pre><code>Notice: Undefined property: mvc::$home in /home/unusuallv/domains/.../public_html/sys/config.php on line 51
</code></pre>

<p>the problem is near $method_name = $mvc->$Current_page_Controller_name.'()'; i know it, but i cant figure it out:// tnx a lot !</p>
