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

Partials don't support path aliases #8

Closed
cedx opened this issue Dec 5, 2019 · 2 comments
Closed

Partials don't support path aliases #8

cedx opened this issue Dec 5, 2019 · 2 comments
Assignees

Comments

@cedx
Copy link
Owner

@cedx cedx commented Dec 5, 2019

The documentation says that we can use path aliases for partials:

{{> @app/views/header.mustache }}

But this triggers a yii\base\InvalidCallException in yii\mustache\Loader class:

The view file "[...]/views/header.mustache" does not exist.
@cedx cedx added the bug label Dec 5, 2019
@cedx cedx self-assigned this Dec 5, 2019
@cedx
Copy link
Owner Author

@cedx cedx commented Dec 5, 2019

Yes, the Loader class provides its own implementation of yii\base\View::findViewFile method, and this implementation does not handle path aliases.

@cedx cedx closed this in fd0e1aa Dec 5, 2019
@cedx
Copy link
Owner Author

@cedx cedx commented Dec 6, 2019

Fixed in version 10.0.0 (released yesterday).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant