public function url($uri, $secure = null)
    {
        // If path is full, so we just return.
        if (preg_match('#^http|//:#', $uri))
        {
            return $uri;
        }

        $path = $this->getCurrentPath().$uri;

        if(substr($path, 0, 6)=='public') $path = substr($path, 7);

        return $this->configAssetUrl($path, $secure);
    }
public function url($uri, $secure = null)
    {
        // If path is full, so we just return.
        if (preg_match('#^http|//:#', $uri))
        {
            return $uri;
        }

        $path = $this->getCurrentPath().$uri;

        if(substr($path, 0, 6)=='public') $path = substr($path, 7);

        return $this->configAssetUrl($path, $secure);
    }
public function url ( $ uri , $ secure = null ) { // If path is full, so we just return. if ( preg_match ( '#^http|//:#' , $ uri ) ) { return $ uri ; } $ path = $ this -> getCurrentPath ( ) . $ uri ; if ( substr ( $ path , 0 , 6 ) == 'public' ) $ path = substr ( $ path , 7 ) ; return $ this -> configAssetUrl ( $ path , $ secure ) ; }
Return asset path with current theme path.

@param  string  $uri
@param  boolean $secure
@return string
Return asset path with current theme path .