Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 3 replies, has 3 voices, and was last updated by Sufiyan Malek Sufiyan Malek 9 months, 1 week ago.

  • Creator
    Topic
  • #14960

    jneto
    Participant

    I’m trying to understand the creation of notes on the accounts

    The NoteController


    /**
    * @Route("/create/{entityClass}/{entityId}", name="oro_note_create")
    *
    * @Template("OroNoteBundle:Note:update.html.twig")
    * @AclAncestor("oro_note_create")
    */
    public function createAction($entityClass, $entityId)
    {
    ......
    }

    the ajax response is the template:

    <!– Start Template: OroNoteBundle:Note:dialog/update.html.twig –>
    ……

    How the template changed from OroNoteBundle:Note:update.html.twig to OroNoteBundle:Note:dialog/update.html.twig ?

    The same happen with other bundles, like the Calls where the template location change to widget/update.html.twig


    class CallController

    /**
    * @Route("/create", name="orocrm_call_create")
    * @Template("OroCRMCallBundle:Call:update.html.twig")
    * @Acl(
    * id="orocrm_call_create",
    * type="entity",
    * permission="CREATE",
    * class="OroCRMCallBundle:Call"
    * )
    */
    public function createAction(){
    .....
    }

    the response
    <!– Start Template: OroCRMCallBundle:Call:widget/update.html.twig –>

    Can some explain the magic ?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

ssossossosso