Sorry, not clear for me too
. I start again
. (And thanks for your answer in the other topic ‘DefaultRoute’)
1.
So in the basic (without the URL manager) my URL looks like:
http://localhost/basic/web/index.php?r=betting/index
After I activete the URL manager in the config the URL looks like:
http://localhost/basic/web/index.php/betting/index
For me this is not enough, I wanna somehow remove the index.php from the url, to get this more SEO friendly format:
http://localhost/basic/web/betting/index
Is this possible in Yii 2.0? (Remove somehowm the index.php from the URL, or hide it, anything solution is good for me 
2.
If I Active the URL manager, then the Debug toolbar won’t work! This is a bug!. I wanna use it, I am from Symfony2 and the debug toolbar is a great feature!
. I need it!. I love it, I am fun of the debug toolbar
.
This is the error message (when I activate the URL manager in the config):
Not Found
The requested URL /basic/web/debug/default/toolbar was not found on this server.
3.
I think this is a bug again.
When my URL looks like in basic format (without the URL manager)
http://localhost/basic/web/index.php?r=/betting/index
In the navbar:
echo Nav::widget([
'options' => ['class' => 'navbar-nav navbar-left'],
'items' => [
['label' => 'kínálat', 'url' => ['/betting/index']],
],
]);
The item’s url in the
'url' => ['/betting/index']]
format, which is good. It is like in the Yii 1.x. This is okay.
Now I activate again the URL manager:
URL again in this format:
http://localhost/basic/web/index.php/betting/index
But the routing won’t work with this url settings in the navbar:
'items' => [
['label' => 'kínálat', 'url' => ['/betting/index']],
],
Then I will get this error message:
Not Found
The requested URL /basic/web/betting/index was not found on this server.
So for me this is a BUG, because in the Yii 1.x this worked fine with the URL manager too…
So the solution is
'url' => ['index.php/betting/index']]
that I add the index.php to the url attribuate in the array of the navbar.
'items' => [
['label' => 'Tippmix kínálat', 'url' => ['index.php/betting/index']],
],
And this works fine.
.
So I think this is a bug, I think the URL manager should works fine without the developer has to modifiy the url attribute in the navbar’s array in the layout.
Or, (this will be the best option for me) figure out how the URL manager can works without the index.php (in the url):
Use this
http://localhost/basic/web/betting/index
instead of the original format:
http://localhost/basic/web/index.php/betting/index
, the index.php is not too much seo friendly for me in the url.