Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle assets are not checked in bundle public folder #7

Open
armababy opened this issue Feb 6, 2013 · 0 comments
Open

Bundle assets are not checked in bundle public folder #7

armababy opened this issue Feb 6, 2013 · 0 comments

Comments

@armababy
Copy link

armababy commented Feb 6, 2013

Hey,

I just wonder if i missed something or shouldn't AssetCompressor look in bundle public directory rather than in projects public directory?

Example:

    $assets = Asset::container('container')->bundle('mybundle');
    $assets->add('jquery.ui.css', 'css/ui/jquery-ui-1.9.1.custom.min.css');

Witch yields following results:

Unhandled Exception

Message:

The Asset you are trying to compress does not exist (/var/www/public/project/public/css/ui/jquery-ui-1.9.1.custom.min.css)
Location:

/var/www/public/project/bundles/assetcompressor/asset.php on line 68

Also the bundle is know if we check with $this->bundle anywhere in asset.php file.

EDIT (this kinda of works):

                if( $this->bundle != 'application')
                    $file = path('public').'bundles/'.$this->bundle.'/'.$data['source'];
                else
                    $file = path('public') . $data['source'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant