Forums

Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

Forums Oro Community create new bundle

This topic contains 4 replies, has 2 voices, and was last updated by adriwan_kenoby adriwan_kenoby 1 year, 9 months ago.

  • Creator
    Topic
  • #24617

    duyanguk
    Member

    I’m using OroCRM 1.7, I followed the documentation exactly to create bundle and newe menu, and I cleared the cacahe, but it’s not showing up. I ran the php app/console config:dump-reference, my new bundle is in the list.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #24618

    duyanguk
    Member

    # src/Bundle1/Resources/config/oro/navigation.yml
    navigation:
    menu_config:
    items:
    bundle1_tab:
    label: Bundle1 label
    uri: ‘#’
    extras:
    position: 300
    bundle1_tab_link:
    label: Bundle1 link label
    route: bundle1_link
    tree:
    application_menu:
    children:
    bundle1_tab:
    children:
    bundle1_tab_link: ~

    titles:
    bundle1_link: My link page title

    #24619

    duyanguk
    Member

    The menu is not showing up.

    #24620

    duyanguk
    Member

    # src/Bundle1/Resources/config/oro/routing.yml
    bundle1_new_bundle:
    resource: “@Bundle1NewBundle/Controller”
    type: annotation
    prefix: /bundle1

    // src/Bundle1/Controller/DefaultController.php
    namespace Bundle1\Controller;

    use Symfony\Bundle\FrameworkBundle\Controller\Controller;
    use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
    use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;

    class DefaultController extends Controller
    {
    /**
    * @Route(“/hello”, name=”bundle1_link”)
    *
    */
    public function indexAction()
    {
    return array(‘name’ => “John Doe”);
    }

    The route /bundle1/hello is not working, 404

    #24621
    adriwan_kenoby
    adriwan_kenoby
    Participant

    Try to clear cache for the prod environment with param –env=prod.

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

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No