Yii 2 - 3 Setting up GII

preview_player
Показать описание
Learn how to setup Gii, generate some models and some of the basics of routes and views.
Рекомендации по теме
Комментарии
Автор

Thank you Brian for these series. Great tutorial and got me hooked on why ay ay :).

yabbadoo
Автор

Thanks dude!
This was super helpful...

JohnMaboko
Автор

Hi, wondering if you can help. I've set up yii2 via composer and all is working - one issue is I cant see the debug bar and I cant access gii. I'm wondering if it could be because I set yii up on a server on my network and i'm accessing it from a different ip address?

jnjames
Автор

i did it and it worked but i can't access the gii. it says
"Forbidden (#403), You are not allowed to access this page."

scanfordhenampong
Автор

at 11:35 where Brian talks about web.php:
when you are on a shared host and not connecting from localhost you may get error
Forbidden (#403)
to solve this, change this in your web.php:

// uncomment the following to add your IP if you are not connecting from localhost.
'allowedIPs' => [' ', '::1'],

change this line either to include *:
'allowedIPs' => ['*', '::1'],

'allowedIPs' => ['your.ip.address.here', '::1'],

If your ip address is dynamic you may need to change it when your provider changes ip but it is safer than the '*'. The '*' (wildcard) allows access of anyone.

yabbadoo