Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Hello
- This md file about base construction in symfony 2
- ## Create
- ### Bundle
- php app/console generate:bundle
- ### Controller
- php app/console generate:controller
- after Bundle:Todo and we created TodoController
- ### Model
- php app/console doctrine:generate:entity
- ### Tables in db
- If you have create table from your entity you use
- app/console generate:doctrine:entities
- If yo want update table , and delete changes
- app/console generate:doctrine:entities
- ### DB
- Create data base
- php app/console doctrine:sch:up --force
- ## Config
- ### DB
- app/config/parameters.yml
- parameters:
- database_host: localhost
- database_name: test_project
- database_user: root
- database_password: password
Add Comment
Please, Sign In to add comment