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

The system forbids reverse paths (../) in Less @import statements so how can an extension share its Less file between frontend and backend? #2179

Closed
dmitrii-fediuk opened this issue Oct 25, 2015 · 2 comments

Comments

@dmitrii-fediuk
Copy link

throw new \InvalidArgumentException("File path '{$filePath}' is forbidden for security reasons.");

@dmitrii-fediuk
Copy link
Author

I found a solution: the common Less files can be placed into the extension's web/base folder and then referred from both the web/frontend and web/adminhtml folders.

@alankent
Copy link

Too quick for me! Yes, base is "global", not per area. It is designed for sharing files between different areas like what you were after.

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

2 participants