开发者

One template/layout for two or more applications in Symfony 1.4

开发者 https://www.devze.com 2023-02-10 05:32 出处:网络
I\'m working with symfony 1.4.8. Is there a way to create one general template/layout for two or more applications?

I'm working with symfony 1.4.8.

Is there a way to create one general template/layout for two or more applications?

Is this even possible in Sym开发者_运维知识库fony?

Thanks for helping. Redstorm


I don't think there's a supported way to do that, plugins can only help you with modules/templates, not with the layout.

Your best option is to symlink/hardlink one layout to the other, so you don't need to update both manually.


Take a look at this article:

Sharing layouts cross-application in symfony

I ran into the same question and that's the one I found more symfony-like and clean. Hope you can still use it!

0

精彩评论

暂无评论...
验证码 换一张
取 消