Development

Changeset 11082

You must first sign up to be able to contribute.

Changeset 11082

Show
Ignore:
Timestamp:
08/24/08 14:28:27 (3 months ago)
Author:
halfer
Message:

Minor corrections.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • doc/branches/1.1/tutorial/my-first-project.txt

    r11054 r11082  
    9595    $ php symfony propel:build-model 
    9696 
    97 >**Note**: Make sure to be at the root of your project (`sf_sandbox/`) when you 
    98 >call the `symfony` command. 
     97>**Note**: Make sure your command line folder is set to the root of your project 
     98>(`sf_sandbox/`) when you call the `symfony` command. 
    9999 
    100100A few classes are created in the `sf_sandbox/lib/model/` directory. These are the 
    101 classes of the object-relational mapping, who allow us to have access to a relational 
     101classes of the object-relational mapping system, which allows us to have access to a relational 
    102102database from within an object-oriented code without writing a single SQL query. 
    103103By default, symfony uses the Propel library for this purpose. Theses classes are 
     
    141141>`/config/propel.ini` and ensure that the following lines have 7 sets of '..' in them: 
    142142> 
    143 >propel.database.createUrl  = sqlite://./../../../../../../../data/sandbox.db 
    144 >propel.database.url        = sqlite://./../../../../../../../data/sandbox.db 
     143>    propel.database.createUrl  = sqlite://./../../../../../../../data/sandbox.db 
     144>    propel.database.url        = sqlite://./../../../../../../../data/sandbox.db 
    145145> 
    146146>If they do not, copy the lines as they appear here, and save the file. 
     
    152152>**Note**: Don't worry if there is a warning at that point, it is normal. 
    153153>The `propel:insert-sql` command removes existing tables before adding the ones 
    154 >of your `lib.model.schema.sql`, and there is no table to remove at that time
     154>from your `lib.model.schema.sql`, and there are no tables to remove at the moment
    155155 
    156156As we want to be able to create and edit the blog posts and comments, we also need to 
     
    204204    } 
    205205 
    206 Now, feel free to create a new post to make the blog look less empty. 
     206Now, feel free to create some new posts to make the blog look less empty. 
    207207 
    208208![post CRUD](/images/tutorials/first_crud.gif)