This topic contains 12 replies, has 5 voices, and was last updated by stebcom 8 years, 4 months ago.
- Topic
I’ve been following two different tutorials but when I open the page at localhost, I only see a the toolbar on top but no menu entries, just a blank content.
These are my steps:- git clone https://github.com/orocrm/platform-application.git oro-demo
- cd oro-demo
- create a mysql database with a name of your choice
- php composer.phar install –prefer-dist –no-dev
- enter the mysql credentials to connect to the database and the name of the database you’ve created
- php app/console oro:install –env prod
- php app/console generate:bundle –namespace=Ortic/DemoBundle
- specify yml as your configuration format and confirm everything else
- create a new file at src/Ortic/DemoBundle/Resources/config called navigation.yml and put the following content in it
1234567891011121314151617181920oro_menu_config:items:ortic_tab:label: 'Ortic'uri: '#'extras:position: 10ortic_hello:label: 'Demo'route: 'ortic_oro_homepage'extras:routes: ['ortic_oro_homepage_*']tree:application_menu:children:ortic_tab:children:ortic_hello: ~oro_titles:ortic_oro_homepage: Demo- in the same directory, open routing.yml and replace it with this content:
1234567ortic_oro_homepage:resource: "@OrticDemoBundle/Controller"type: annotationprefix: /ortic- modify the controller to match this:
123456789101112131415161718192021222324<?phpnamespace Ortic\DemoBundle\Controller;use Symfony\Bundle\FrameworkBundle\Controller\Controller;use Symfony\Component\HttpFoundation\Request;use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;class DefaultController extends Controller{/*** @Route(* "/{_format}",* name="ortic_oro_homepage",* requirements={"_format"="html|json"},* defaults={"_format" = "html"}* )*/public function indexAction($name){return $this->render('OrticDemoBundle:Default:index.html.twig', array('name' => $name));}}- php app/console oro:navigation:init
- php app/console cache:clear –env=prod
Can anyone tell me what I did wrong? Thanks!
The forum ‘OroPlatform – Installation/Technical Issues or Problems’ is closed to new topics and replies.