Guest User

Untitled

a guest
Nov 14th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. ## Hello
  2. This md file about base construction in symfony 2
  3. ## Create
  4. ### Bundle
  5. php app/console generate:bundle
  6. ### Controller
  7. php app/console generate:controller
  8. after Bundle:Todo and we created TodoController
  9. ### Model
  10. php app/console doctrine:generate:entity
  11.  
  12. ### Tables in db
  13. If you have create table from your entity you use
  14. app/console generate:doctrine:entities
  15. If yo want update table , and delete changes
  16. app/console generate:doctrine:entities
  17.  
  18. ### DB
  19. Create data base
  20. php app/console doctrine:sch:up --force
  21.  
  22. ## Config
  23. ### DB
  24. app/config/parameters.yml
  25. parameters:
  26. database_host: localhost
  27. database_name: test_project
  28. database_user: root
  29. database_password: password
Add Comment
Please, Sign In to add comment