开发者

Symfony tips & advices

开发者 https://www.devze.com 2023-03-06 03:27 出处:网络
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'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:

  1. Don't modify css/javascript codes from the web directory, you must edit them in your src bundles, then assets:install, and assetic:dump.
  2. Never try to mix PHP and twig codes
  3. Never edit the framework bundles (the vendors folder)
  4. Use fixtures for your tests.
  5. Try to avoid dependencies between bundles. Every bundle should be independent of the others.
0

精彩评论

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