src/Tao/Application.php
public function getModel($sModel)
    {
        $namespacedClass = $this['database.models_namespace'] . '\\' . $sModel;

        if (!isset(static::$models[$sModel])) {
            static::$models[$sModel] = new $namespacedClass($this);
        }

        return static::$models[$sModel];
    }
public function getModel($sModel)
    {
        $namespacedClass = $this['database.models_namespace'] . '\\' . $sModel;

        if (!isset(static::$models[$sModel])) {
            static::$models[$sModel] = new $namespacedClass($this);
        }

        return static::$models[$sModel];
    }
public function getModel ( $ sModel ) { $ namespacedClass = $ this [ 'database.models_namespace' ] . '\\' . $ sModel ; if ( ! isset ( static :: $ models [ $ sModel ] ) ) { static :: $ models [ $ sModel ] = new $ namespacedClass ( $ this ) ; } return static :: $ models [ $ sModel ] ; }
Return the instance of specified model.

@param string $sModel
@return \Tao\Database\Model
Return the instance of specified model .