This topic contains 2 replies, has 2 voices, and was last updated by anderpydev 6 years, 10 months ago.
- Topic
Hello,
I work with OroPlatform. I created a new Bundle (Lorem\Bundle\IpsumBundle\Controller)
In the oro directory (Resources) I have: bundles.yml, navigation.yml, routing.yml
DefaultController.php
12345678910111213141516171819<?phpnamespace Lorem\Bundle\IpsumBundle\Controller;use Symfony\Bundle\FrameworkBundle\Controller\Controller;use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;class DefaultController extends Controller{/*** @Route("/ipsum", name="ipsum_link")* @Template()*/public function indexAction(){return array('name' => "Lorem Ipsum");}}routing.yml
1234ipsaum_link:resource: "@LoremIpsumBundle/Controller"type: annotationprefix: /loremAnd navigation.yml
123456789101112131415161718192021navigation:menu_config:items:ipsum_tab:label: Loremuri: '#'position: 300extras:icons: fa-iconipsum_tab_link:label: Lorem Ipsumroute: ipsum_linktree:application_menu:children:ipsum_tab:children:ipsum_tab_link: ~titles:ipsum_link: Lorem ipsum dolor sita amoBundle added according to documentation. It works. After entering the address manually, I can go to the view.
I used the command:
1php app/console oro:navigation:initI cleared the cache. The item is not displayed in the menu. What am I doing wrong? I will be grateful for your help.
PS: Oro Platform is a great tool and I wish you further successes;)
Regards
The forum ‘OroPlatform’ is closed to new topics and replies.