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

Smarty Block will be overwritten or the following templates will be ignored #869

Open
alphaChris opened this issue Mar 24, 2023 · 0 comments

Comments

@alphaChris
Copy link

Hello guys, I have a question. Maybe someone can help me.

I am currently using Smarty with PHP 8.0, have a default template, a custom template and several addon templates which are also made up of template files and should be inherited/extended in that order.

If I now extend a block from the default template with a block from the custom template, I can no longer access the same block with an addon template. Apparently the first loaded block is always used, which extends the block from the default. Anything after that that extends the same block is ignored. Even if I use {parent}|{child} .
What am I doing wrong?

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