Comments (4)
I think it's more the architecture of your code that is false. i'm not sure but i think this way is impossible for now but you can easyly do that another way.
from multisite-bundle.
Hi and thanks again, I just only needed of someone that confirm I could not do with annotation (I'm new on symfony2 and the docs about "override a template" is not clear), however I've already found a simple method to do that without use a Template annotation.
Please, can you explain me better what you mean with I think it's more the architecture of your code that is false
?
My mother tongues are Italian and Russian :-)
from multisite-bundle.
I'm a french native speaker although.
I think but I'm maybe wrong, that annotation are not yet dynamic. We don't have real good Aspect oriented Programming yet in PHP, so how would you change dynamicly annotation? I'm pretty sure it's impossible right now except writting an new AOP bundle that have more features than the jms one.
But i'm not expert, you should ask your question on diffrent forum's, my personnal answer is :don't use annotation if you want dynamic routes.
If you find someone that is able to dynamicly change annotation i'll be happy to read that because i'm interested too.
so do what you found with more code and use your solution without the @template I think it's a better solution,
good luck!
from multisite-bundle.
Thanks for your help!
from multisite-bundle.
Related Issues (10)
- Activate Travis builds HOT 1
- Cannot import resource (Unknown property 'paths' on annotation 'Sensio\Bundle\FrameworkExtraBundle\Configuration\Route'.) HOT 6
- Symfony2 firewall doesn't hook "check_path" and "logout" routes HOT 8
- Avoid the generated route in the cache HOT 6
- Can't be change current branding or locale HOT 1
- Using Twig_Loader_String and AlexMultisiteBundle, return a prefixed string HOT 2
- Sf 2.8.6 , multisite-bundle 0.1.1 is breaking the debugtoolbar HOT 3
- Symfony 3 Compatibility issue. HOT 1
- Wrong findTemplates declaration in Alex\MultisiteBundle\Twig\MultisiteLoader
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multisite-bundle.