** Framework Overview
** Use Composer
composer create-project symfony/framework-standard-edition myProject/ 2.4.4
app directory is where all the app stuff lives.
bin directory containst a couple binaries
src where all custom code
vendor third party librarires
web is document root
assetic is a thing
use composer again!
** Web Directiory
controllers, entities, views, configs, forms, etc.
Composer install should update all the things.
app console generate:bundle
namespace - then Bundle becuse you need to name bundles "Bundle"
He prefers annotation configuration
sudo app/console cache:clear
** Doctrine Databases
He's having problems... Ooops.
app/console doctrine:schema:update --dump-sql
app/console doctrine:schema:update --force
Not going to show you those right now.
Doctrine has a soft delete extension.
Remove removes it from the database hard.
Make sure you have a service layer between your controller and doctrine.
It's the best practice.
Forms! Objects! Validation!
PostType extends AbstractType
Just reviewing the automatically generated code for form.
Group Validators ??
Propel (http://propelorm.org/) is an alternative to Doctrine.
Creating a PDO service from scratch.
When creating a PDO service don't register a service for "/PDO" but use "PDO" instead
Never inject the container because it's untestable.