Skip to content

manjufy/Jobeet2Bundle

 
 

Repository files navigation

/!\ This bundle is outdated as it was done with Symfony 2.0 /!\

Jobeet2

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 :)

Infos

Additional Symfony2 bundles used:

For the frontend

  • DoctrineFixturesBundle (use doctrine-fixtures)
  • KnpPaginatorBundle (use knp-components)

For the backend

  • SonatajQueryBundle
  • SonataUserBundle
  • SonataAdminBundle
  • KnpMenuBundle
  • KnpMenu
  • SonataDoctrineORMAdminBundle

Database

You can find the MySQLWorkbench schema of the database in /Resources/doc/jobeet2.mwb

Todo

Chap12

Problems

  • 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)

To check / Best practices

  • 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

Rafactoring / Cleanup / Optimisation

  • 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

Asset / style optimisations

Generic

  • Compress images with Google page speed
  • Convert at the right scale the Symfony2 logo (98% optimisation !!)

Chap12

  • Apply a Jobeet2 admin theme

Releases

No releases published

Packages

No packages published

Languages

  • PHP 73.7%
  • HTML 15.0%
  • CSS 8.3%
  • Shell 3.0%