I'm developing Code Igniter as framwork and i want to switch to Symfony but the problem is that I don't even know if I have bad habits with MVC or Framwork in general.
I know it's a quite subjective question, but I thought it could be a good idea to ask people who has already practice with this framework.
So if you have some Do's and Dont's about framworks in general or more accurately about Symfony I would 开发者_如何学运维be grateful !
Timon.
The Documentation on the Symfony website is all you need - its very extensive and will help you learn the framework quickly and in depth
Check your applications before deployment with list on http://symfony-check.org/
These are some tips:
- Don't modify css/javascript codes from the web directory, you must edit them in your src bundles, then assets:install, and assetic:dump.
- Never try to mix PHP and twig codes
- Never edit the framework bundles (the vendors folder)
- Use fixtures for your tests.
- Try to avoid dependencies between bundles. Every bundle should be independent of the others.
精彩评论