public function registerClass($property, $className)
    {
        // Make sure the $className is prefixed with a backslash
        $className = '\\' . ltrim($className, '\\');

        $this->classes[$property] = $className;
        return $this;
    }
public function registerClass($property, $className)
    {
        // Make sure the $className is prefixed with a backslash
        $className = '\\' . ltrim($className, '\\');

        $this->classes[$property] = $className;
        return $this;
    }
public function registerClass ( $ property , $ className ) { // Make sure the $className is prefixed with a backslash $ className = '\\' . ltrim ( $ className , '\\' ) ; $ this -> classes [ $ property ] = $ className ; return $ this ; }
Register a class with the View for property lazy-loading.

@param string $property
@param string $className

@return $this
Register a class with the View for property lazy - loading .