A property exists in the parent class, but can't be used from the child class
<p>EDIT: SOLVED!</p>

<p>I have been working on my own framework lately. I have a controller class like this:</p>

<pre><code>class Controller {
    private $model;

    public function __construct() {
        global $bean_db, $mv_name;

        if (file_exists(APP_PATH . 'models/' . $mv_name . '.php')) {
            require APP_PATH . 'models/' . $mv_name . '.php';

            $model_name = $mv_name . '_Model';
            $model = new $model_name;
            $this-&gt;model = $model;
        }
    }
}
</code></pre>

<p>Now, in a specific controller file, I have code like this:</p>

<pre><code>class Start_Controller extends Controller {
    function execute() {
        $this-&gt;model-&gt;exec("SET NAMES 'utf8'");
    }
}
</code></pre>

<p>As you may or may not expect, that did not work. I get an error message that the property named "model" does not exist. Can anyone help me solve this?</p>
