How to create basic pages with Symfony and Doctrine?

I think symfony might not be for you. There is a 'symfony-way' of doing things. Part of that is the MVC seperation of logic A simple page would be: $ .

/symfony generate:project yourprojectname $ . /symfony configure:database "mysql:host=localhost;dbname=yourdbname" root yourpassword $ . /symfony generate:app frontend $ .

/symfony generate:module frontend yourmodule Ok, now you have a module. Go to localhost/web/frontend_dev. Php/module and you will see that you have setup a basic module and a congratulations message Read up on the URI-routing of symfony.

Localhost/web/frontend_dev. Php/module/action/param/value, that's the basic default routing So it will call the action in your module and pass the parameter's value Do anything you want with it That said, you will have to read up on how symfony works. The framework can help you with a lot of things, if you know how it works.

If you don't it will be more likely slowing you down Start here: symfony-project.org/get/pdf/jobeet-1.4-d... it will walk you through from beginning to end of a rather extensive project. Some of the things might seem a bit clumsy, but that is because in the process they WILL show you most everything that framework can do.

I think symfony might not be for you. There is a 'symfony-way' of doing things. Part of that is the MVC seperation of logic.

A simple page would be: $ . /symfony generate:project yourprojectname $ . /symfony configure:database "mysql:host=localhost;dbname=yourdbname" root yourpassword $ .

/symfony generate:app frontend $ . /symfony generate:module frontend yourmodule Ok, now you have a module. Go to localhost/web/frontend_dev.

Php/module and you will see that you have setup a basic module and a congratulations message. Read up on the URI-routing of symfony. Localhost/web/frontend_dev.

Php/module/action/param/value, that's the basic default routing. So it will call the action in your module and pass the parameter's value. Do anything you want with it.

That said, you will have to read up on how symfony works. The framework can help you with a lot of things, if you know how it works. If you don't it will be more likely slowing you down.

Start here: symfony-project.org/get/pdf/jobeet-1.4-d... it will walk you through from beginning to end of a rather extensive project. Some of the things might seem a bit clumsy, but that is because in the process they WILL show you most everything that framework can do.

Thank you, I noticed that symfony was maybe not for me after all... I just wanted to generate Doctrine classes from YAML files and I didn't find anything else than using Sympfony. So really, I need to access Doctrine classes from a custom page, I can't do that easily with Symfony? – MartinMoizard Oct 14 '10 at 18:24 2 Why don't you use straight up Doctrine, without Symfony?

Doctrine-project. Org and they have a starters' tutorial as well: doctrine-project. Org/projects/orm/1.2/docs/cookbook/… – tilman Oct 14 '10 at 18:29 I don't know what went through my mind but I was sure that I needed Symfony to generate my Doctrine classes with YAML files... Never mind!

Thank you for your quick answers :)! – MartinMoizard Oct 14 '10 at 18:52.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions