Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PIM & Master Data Management with Pimcore 5 [en]

PIM & Master Data Management with Pimcore 5 [en]

Symfony User Group Berlin #sfugbln 2017-05-30

Christoph Lühr

May 30, 2017
Tweet

More Decks by Christoph Lühr

Other Decks in Technology

Transcript

  1. ?

  2. MDM

  3. 7

  4. +

  5. +

  6. +

  7. +

  8. !

  9. <?php class ContentController { /** * Optional: * @Template("AppBundle:Content:portal.html.twig") *

    @Route("/news/portalpage") */ public function portalAction( ) { // custom code: // - retrieve data // - .. // - populate view } }
  10. <?php namespace AppBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use

    Symfony\Component\HttpFoundation\Request; class ContentController extends Controller { /** * @Template("AppBundle:Content:portal.html.twig") -- Optional! * @Route("/news/portalpage") -- Optional! * * @param Request $request * @param array $templateVars * @return array */ public function portalAction(Request $request, array $templateVars) { $templateVars = $this->defaultAction($request, $templateVars); $templateVars['isPortal'] = true; return $templateVars; } }
  11. +

  12. +

  13. // Object creation $person = Object\Person::create(array( 'name' => 'Chris', 'description'

    => 'Fast talker' )); $person->setWeight(75); $person->save();
  14. • Pimcore https://www.pimcore.org/en https://www.pimcore.org/en/resources/try [Demos] • Standalone Docker Demo using

    latest Pimcore 5 https://hub.docker.com/r/christophluehr/docker-pimcore-demo- standalone/