Hi. I am a little familiar with CSPro and some knowledge in PHP. I know that it is possible to have additional menu in the sidebar but Twig is new to me and I can't seem to find the pages that I need to configure or change in order to add one.
What I have tried so far is adding just one menu:
. But, I am getting the "Whoops, looks like something went wrong." message. I can't also seem to find anything in any routes.php files. What files do I need to change/configure to add a working sidebar menu. Thanks much.
Not sure what is wrong. The mount line looks correct. You also need to add the corresponding controller in src/ui/src/Controllers/MapController.php.
While doing development you should turn on debug so that you can see full error messages instead of "something went wrong". To do this in the file src/ui/src/app.php change:
$app['debug']=false;
to
$app['debug']=true;
Don't forget to change it back when deploying the application for production.
Path is some internal magic symfony framework stuff that gets the relative url. Basically it lets you generate a link that is relative to the current page. You can read more here: https://symfony.com/doc/current/referen ... .html#path
You may read some tutorials on Symfony framework to get started. It is a bit different than standard PHP and it is the basis of the CSWeb UI. Fortunately there is lots of info online.
When you turn on debug in app.php you should see more info from the error that will figure out what the problem is. It is likely a syntax in some file but without debugging on you won't be able to tell since it will just tell "something went wrong" for every error.
If you see the DictionaryController class, the connect function adds the routes and binds it to the function that is called.
Also, in the /api/index.php make sure that the authentication for your route is set, see the lines after 129 that adds the endpoint authentication using oauth.