The basics
Before diving into application design, I will introduce you to VRPH LPSRUWDnW FRnfiJuUDWLRn fiOHV WhDW dHfinH WhH DSSOLFDWLRn behaviour.
Databases.yml: /HW’V dHfinH WhH dDWDEDVH IRU WhH SURMHFW (WhH username, password and other basic details). katurally, you VhRuOd FRnfiJuUH WhLV fiUVW EHIRUH VWDUWLnJ dHYHORSPHnW. )Lnd WhH details in the Project > Source )iles > Config folder. Here is FRnWHnW IURP D VDPSOH fiOH:
all: doctrine: class: sfDoctrineDatabase param: dsn: mysql:host=localhost;dbname=webslips username: root password:
HHUH, WhH DS1 LdHnWLfiHV WhH dDWDEDVH HnJLnH (MySQ/, Ln this case), the host name, and the database name. The username and the password also have to be given here.