Wednesday, 21 August 2013

Symfony2 conventions

Symfony2 conventions

I was wondering where I can find conventions for Symfony2 and maybe
Doctrine. I found the Coding Standards and the Conventions sections of the
documentation.
But I still don't know about things like how to name my controllers - for
example ProductController or ProductsController, or how to name my entity
classes - Product or Products.
Another thing I'm wondering about now is if there is a convention for
naming methods that interact with the database - addProduct or newProduct,
editProduct ot updateProduct, deleteProduct or removeProduct.
I'd be very grateful for some articles or resources on the subject, if
there are any, because I couldn't find (maybe because I don't know what to
search for), or just for answers on the questions I gave as examples.
Thank you very much in advance! :)

No comments:

Post a Comment