This Jobeet2 tutorial actually works with Symfony2 standard edition: 2.0.9
All the code was done by me and I didn't cheat on other implementations so the code may vary with what you will find on other Jobeet2 repositories.
Nevertheless, I tried to produce the cleanest code I could by respecting 100% of the Symfony2 coding standarts. The code will be cleaned and improved as I will gain experience with Symfony2.
No tutorial here, just code ! :)
See you. COil :)
Additional Symfony2 bundles used:
- DoctrineFixturesBundle (use doctrine-fixtures)
- KnpPaginatorBundle (use knp-components)
- SonatajQueryBundle
- SonataUserBundle
- SonataAdminBundle
- KnpMenuBundle
- KnpMenu
- SonataDoctrineORMAdminBundle
You can find the MySQLWorkbench schema of the database in /Resources/doc/jobeet2.mwb
- Check the problem with the company field (sonata-project/SonataAdminBundle#524)
- Check the problem with the SonataAdminBundle translations not displayed (upgragde bundle)
- Inheritance and theming of form blocks does not seem to work well, to try later... I'd like to use the for_widget(form) like Jobeet1 but only with modifying the blocks: 'field_row', 'form_widget' and 'field_widget' (doc)
- Job form: check what is best place to put Job::getTypes() function, in the entity or in the repository class like Jobeet1 ?
- Check the way activatedQueries() are built, it does not seem the cleanest DRY method
- Use the DoctrineExtension bundle to hanlde timestamble and sluggable behaviors --> Is it really necessary as using doctrine lifecycle callback works pretty well ?
- Use the @ParamConverter to retrieve job objects in the Job and Category controllers
- Compress images with Google page speed
- Convert at the right scale the Symfony2 logo (98% optimisation !!)
- Apply a Jobeet2 admin theme