This topic contains 3 replies, has 3 voices, and was last updated by Sufiyan Malek 7 years, 2 months ago.
- Topic
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.
The forum ‘OroCRM – How do I? Questions’ is closed to new topics and replies.