? ??? ??? ?????? YII ??? ??? ?? ? ?? ????? ???? ?????. ? ??? YII 2.0 ???? ?? ? ????? ? ??? ?? ???? ??? ?????? ??? ????? ?????.
YII 2 ??? ??? ??????? ?? ????? ???
??
YII 2? ?? ? ??? ?? ??? ??? ???? ???? PHP ??? ?????. ? ????? YII 2? ?? ????? ???? ??? ??? ??? ????? ?????.
?? ? ??
- YII 2? ???? ???? ??? ??????.
-
YII 2 ?? ?? ??? ????? ?????? ?? ??? ??????.
Composer? -Prefer-Dist Yiisoft/YII2-AuthClient? ????? Composer? -Prefer-Dist Yiisoft/YII2-USER? ?????
??? ?? ??
User
?? ??? ??? ???? IdentityInterface
? ActiveRecord
???? ?????.
??? ??? ?? activerecord emplements IdentityInterface { // ... ?? ... }
?? ?? ?? ??
config/web.php
???? ?? ?? ??? ??????.
'?? ??'=> [ 'Authmanager'=> [ 'class'=> 'yii \ rbac \ dbmanager', ],, '???'=> [ 'IdentityClass'=> 'app \ models \ user', ],, ]]
?? ?? ??
??? ??? ?? ? ?? ?? :
yii \ ?? \ activeform? ??????; $ form = activeForm :: ?? (); echo $ form-> field ($ model, 'username')-> label ( 'username'); echo $ form-> field ($ model, 'password')-> passwordInput ()-> label ( 'password'); echo $ form-> submitbutton (); ActiveForm :: end ();
?????? ???? ???? ???? ?? ? ?? ??? ??????.
yii \ web \ IdentityInterface? ??????. $ user = user :: findByUserName ($ _ post [ 'loginform'] [ 'username']); if ($ user && $ user-> validatePassword ($ _ post [ 'loginform'] [ 'password'])) { // ??? ??? ??????} else { // ??? ?? ??}
??? ???
??? ???? login()
???? ???? ????? ???????.
yii :: $ app-> user-> ??? ($ user);
?? ??? ??
YII 2? ?? ?? ??? (? : Google ? Facebook)? ?? ??? ???? ?????. ? ??? ????? ?? ??? ?????.
- YII 2 ??? ??? ?? ?? ?????? ???? ??????.
-
?????? ????? ???? ??????.
$ authclient = yii :: $ app-> get ( 'authclientCollection')-> getClient ( 'Google'); $ authclient-> redirecturl = url :: to ([ 'site/login'], true); $ authclient-> ?? (true);
-
??? ??? ?? ?? :
$ authclient = yii :: $ app-> get ( 'authclientCollection')-> getClient ( 'Google'); $ code = yii :: $ app-> request-> get ( 'code'); if ($ code) { $ accessToken = $ authclient-> fetchAccessToken ($ code); $ attributes = $ authclient-> getUserAttributes ($ accessToken); // ??? ?? ?? ?? ???? yii :: $ app-> user-> login ($ user); }
??
yii 2? ?? ????? ???? ??? ??? ?? ??? ??? ??? ?????. ? ????? ??? ??? ???? ???? ?? ?? ???? ?? ? ????.
? ??? YII ??? ??? ?? ???? ????? ???? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? ??











? ?? ???? ??? ?? ?????. ???? ??? ?? ?? ??? ?? ? ????. ? ?? ????? ???? ??? ?? ????? ???? ?? ? ???? ??? ??? ???? ???? ??? ??? ??? ????. ??? ? ??? ?? ??? ?? ???? ?? ???? ?? ???? ??? ??? ????. ??? ??? ??? ??? ?? ??? ???? ????? ?? ??? ??? ??? ?? ? ??? ?? ?? ????. ? ????? ??? ??? ???? ?? ??? ? ?? ????. ??? ??? ??? ???? ????? ???? ???? ??? ??? ??? ???? ? ?? ????? ?????? ? ??????. ? ??? ???? ???? ???? ????.

? ???? Yandex Webmaster ??? ?? ??????? Google Search Console, Bing ? Yandex? ?? ? ??? ??? ???? ? ???? ????? ???? ?????? Robots.txt? ???? ? ??? ?? ?? ?? ??? ? ????. ? ????? WordPress ? ???? Yandex ? ??? ??? ???? ?? ?? ???? ?????? ??? ?????. Yandex? ?????? Yandex? Google ? Bing? ??? ???? ??? ? ???? ?? ?????. Yandex?? ?? ? ? ????

WordPress?? HTTP ??? ??? ??? ???????? ? ??? WordPress?? ???? ?? ? ?? ?? ??? ? ????. ????? ?? ? WordPress ??? ?????? ???? ??? ?? ?? ??? CMS? ??? ? ? ?????. ? ????? WordPress?? HTTP ??? ??? ??? ?? ???? ??? ?????. WordPress ??? ??? ?? HTTP ??? ??? ?????? WordPress ??? ? ??? ???? ??? WO? ?????? ? ?

Laravel? Sentry? Bugsnag? ???? ?? ???? ???? ??? ?? ? ? ????. 1. Composer.json? Sentrysdk? ??????. 2. config/app.php? ??? ??? ?? ??? ??????. 3. .env ???? sentrydsn? ??????. 4. app \ exceptions \ handler.php?? ??? ?? ???? ??????. 5. ???? ???? ??? ?????? ?? ???? ??? ??????. 6. app \ exceptions \ handler.php? ugsnag ?? ???? ??????. 7. Bugsnag ????? ??????

?? ?? ???? Laravel ??? ???? ??? ??? ????. 1. windows : XAMPP? ???? PHP ? Composer? ???? ?? ??? ???? Laravel? ?????. 2.MAC : Homebrew? ???? PHP ? ???? ???? Laravel? ??????. 3.Linux : Ubuntu? ???? ???? ?????? PHP ? Composer? ???? Laravel? ??????. ? ???? ?? ??? ??? ???? ?? ??? Laravel ?? ??? ??? ??? ???? ?? ?????.

IIS? Microsoft? ? ??? ? ?? ????? ????? ?? ?? ? ? ?? ????????. 1. Windows?? "?? ? ?? ??"???? ?? IIS? ??? ? ????. 2. PowerShell ????? ?? ? ??? ??? ?? ? ? ????. 3. Web.config ??? ?? URL ? ??? ???? ?? ? SEO? ?? ? ? ????. 4. IIS ??, ?? ?? ? ?? ????? ???? ???? ?? ? ? ????. 5. ??, ?? ?? ??? ???? ????? IIS ??? ??? ? ? ????.

IIS? ??? ?? ???? ???, ?? ?, ?? ? ??? ?? ??? ?????. 1) ?? ?? ???? ?? ? ?? ? ??? ?? ??? ? ?? ? IIS? ?? ??? ????? ????? ?? ? ? ????. 2) Security? ? ??? ??? ?????? SSL/TLS ?? ? URL ?? ?? ??? ?????. 3) ?????? ?? ?? ?? ????? ???? ?? ???? ?????. 4) ?? ? ????? iismanager ? PowerShell ????? ?? ?? ??? ??????.

Composer? PHP? ??? ?? ???? Composer.json ??? ?? ???? ???? ?????. 1) ??? ??? ?? ?? Composer.json? ?? ?????. 2) ??? ??? ?????? ???; 3) Packagist?? ?? ?? ????? ???? ?????? ?????. 4) Composer.Lock ??? ???? ? ??? ? ???? ?? ?? ???? ???? ?? ??? ??? ?????.
