Sunday, August 22, 2010

symfony2 PR3 released

Today symfony2 PR3 sandbox released. Several errors and bugs are fixed. I'm experienced so much errors when i progress through these tutorials. so  i stop writing tutorials for a while. Sorry for not updating this blog. Now i'm back with interesting new stuff. please keep in touch .

Thursday, August 5, 2010

Mongodb : Getting wet


Mongodb is another database system using the features of RDBMS and key-value stores. It's a non-sql database. All the results display in json format. MongoDB is a scalable document database, which is also open source. In MongoDB there are no tables and rows. You have collections and documents instead. And collections can contain any type of document, it is not limited by the columns or fields like a table. i.e. Mongodb is schemaless. So that you can update with new fields,
without altering the entire structure. In the case of RDBMS you must change the schema.

Mongodb can be download from here: Downloads
Mongodb installation for unix : Installation

In this post i'm writing about symfony2+doctrine2-ODM+mongodb

doctrine2-ODM (Doctrine MongoDB Object Document Mapper). You can read more from here.
There is a blog tutorial in here.

sandbox configuration

All the configuration files goes into hello/config folder. The file structure is given below.
config folder
the configuration files written in yaml format. doctrine configurations are done in config.yml. you can do seperate configuration for dev, prod, even for testing.

doctrine configuration:(in config.yml)

doctrine.dbal:
    driver:   PDOMySql
    dbname:   todo
    user:     root
    password: admin
doctrine.orm: ~


routing.yml



homepage:
    pattern:  /
    defaults: { _controller: FoundationBundle:Default:index }


hello:
    resource: HelloBundle/Resources/config/routing.yml

Wednesday, August 4, 2010

The Architecture

Today we going to understand the directory structure, basic routing,controller-view actions etc.

This is the basic directory structure of symfony 2 sandbox.

Tuesday, August 3, 2010

Introduction

This blog is dedicated to symfony2 web development. i intend to post a series of tutorials for using symfony2 in real web apps.

There is a support group here
My codes are here