protected function saveBlockByPath($path)
    {
        $info = FileHelper::classInfo($path);
        
        if ($info) {
            $className = $info['namespace'] . '\\' . $info['class'];
            
            return $this->saveBlock($className);
        }
        
        $this->addLog('Unable to find block namespace for file ' . $path);
        
        return false;
    }
protected function saveBlockByPath($path)
    {
        $info = FileHelper::classInfo($path);
        
        if ($info) {
            $className = $info['namespace'] . '\\' . $info['class'];
            
            return $this->saveBlock($className);
        }
        
        $this->addLog('Unable to find block namespace for file ' . $path);
        
        return false;
    }
protected function saveBlockByPath ( $ path ) { $ info = FileHelper :: classInfo ( $ path ) ; if ( $ info ) { $ className = $ info [ 'namespace' ] . '\\' . $ info [ 'class' ] ; return $ this -> saveBlock ( $ className ) ; } $ this -> addLog ( 'Unable to find block namespace for file ' . $ path ) ; return false ; }
Save a block by its path, this will extract the namespace of the block in order to save it.

Example path: /apps/myblocks/ExampleBlock.php

Example path: `
@param string $path
@return number|boolean
Save a block by its path this will extract the namespace of the block in order to save it .