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

Include in module's views not working #30

Open
unti1x opened this issue Oct 13, 2014 · 1 comment
Open

Include in module's views not working #30

unti1x opened this issue Oct 13, 2014 · 1 comment

Comments

@unti1x
Copy link

unti1x commented Oct 13, 2014

Having module my_module. Inside one of it's views, e.g. default/index.twig, appears line

{% include 'views/default/list.twig' %}

This wont work 'couse twig looking for file in protected directory. It's possible to use paths like my_module/views/default/list.twig, but it will be broken if module changed it's name or path, (e.g. it's installed via composer into protected/vendor). There is no way to specify folder-independent path.

@unti1x
Copy link
Author

unti1x commented Oct 16, 2014

ok, i've already dealt with it using good old CController::renderPartial

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