OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – How do I? Questions Controller Templates location

This topic contains 3 replies, has 3 voices, and was last updated by  Sufiyan Malek 7 years, 1 month ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #28648

    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)

The forum ‘OroCRM – How do I? Questions’ is closed to new topics and replies.

Back to top