This topic contains 0 replies, has 1 voice, and was last updated by golriz.nourani 8 years, 1 month ago.
- Topic
Dear Sir
I want to create sub menu for order in menu and each sub menu show a list of order by some condition
so I add sub menu in navigation.yml as below123456789101112131415161718192021222324252627oro_menu_config:items:order_list:label: 'websys.order.order.entity_plural_label'uri: '#'route: websys_order_indexextras:position: 30description: 'websys.order.menu.order_list.description'order_list_not_satisfaction:label: 'websys.order.websysorder.not_satisfaction.label'route: 'websys_order_order_list_not_satisfaction'extras:position: 1widgetAcl: 'websys_order_view'description: 'websys.order.menu.order_list.not_satisfaction.description'tree:application_menu:children:sales_tab:children:order_list:children:order_list_not_satisfaction: ~oro_titles:websys_order_order_list_not_satisfaction: websys.order.order.entity_plural_labeland in controller :
1234567891011121314151617181920212223242526272829/*** Lists all WebSysOrder entities.** @Route("/{_format}", name="websys_order_index",* requirements={"_format"="html|json"},* defaults={"_format" = "html"})* @Template("WebSysOrderBundle:WebSysOrder:index.html.twig")* @AclAncestor("websys_order_view")*/public function indexAction(){return ['entity_class' => $this->container->getParameter('websys_order.order.class')];}/*** @Route("/order_not_satisfaction/{_format}", name="websys_order_order_list_not_satisfaction",* requirements={"_format"="html|json"},* defaults={"_format" = "html"})** @Template("WebSysOrderBundle:WebSysOrder:orderNotSatisfaction.html.twig")* @AclAncestor("websys_order_view")*/public function orderNotSatisfactionAction(){return ['entity_class' => $this->container->getParameter('websys_order.order.class')];}and I have a data grid and a html.twig
but when I apply a sort on column of grid of Satisfaction and then view one of the row (route to view of order) and then click back my navigation crash and below error generate
Uncaught PHP Exception Twig_Error_Runtime: “An exception has been thrown during the rendering of a template (“”) in “OroNavigationBundle:HashNav:hashNavAjax.html.twig” at line 2.”
and after it I see An Exception was thrown while handling: Internal Server Error on UIif I delete the last row of navigation table , it will be Ok
it is so interesting because in app_dev mode all thing is ok!!!!
could you help me?
thanks
The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.