protected function assetSplit($url)
    {
        $basefile = ltrim(ltrim($url, '.'), '/');
        $exploded = explode('/', $basefile);
        $plugin   = Inflector::camelize(array_shift($exploded));
        $basefile = implode(DS, $exploded);

        return [
            $plugin, $basefile
        ];
    }
protected function assetSplit($url)
    {
        $basefile = ltrim(ltrim($url, '.'), '/');
        $exploded = explode('/', $basefile);
        $plugin   = Inflector::camelize(array_shift($exploded));
        $basefile = implode(DS, $exploded);

        return [
            $plugin, $basefile
        ];
    }
protected function assetSplit ( $ url ) { $ basefile = ltrim ( ltrim ( $ url , '.' ) , '/' ) ; $ exploded = explode ( '/' , $ basefile ) ; $ plugin = Inflector :: camelize ( array_shift ( $ exploded ) ) ; $ basefile = implode ( DS , $ exploded ) ; return [ $ plugin , $ basefile ] ; }
Splits an asset URL

@param  string $url Asset URL.
@return array       The plugin as first key and the rest basefile as second key.
Splits an asset URL