This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Общая теория | |
ООП - как понимаешь | |
Полиморфизм в PHP | |
Принципы SOLID? | |
MVC? Какую роль выполняет каждый из составляющих элементов? | |
PHP | |
- [ ] PHP7, что нового | |
- [ ] PHP7, за счет чего скорость |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 768; | |
# multi_accept on; | |
} | |
http { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script language="javascript" type="text/javascript"> | |
for (var i=0; i <= 3; i++) { | |
msg = (i == 2) ? "Happy Birthday dear Ann!" : "Happy Birthday to You!" ; | |
alert(msg); | |
} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"products": [ | |
{ | |
"guid": "8819a070-246c-11e4-9776-001fc6aa01da", | |
"sku": "CI31", | |
"label": "Золотая цепочка ", | |
"announce": "", | |
"content": "", | |
"type_guid": "7bc3d3f9-081b-11e4-9501-001fc6aa01da", | |
"metal_guid": "59399eaf-125a-11e4-997f-001fc6aa01da", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name mindguid.com; | |
client_max_body_size 100m; | |
root /web/mindguide/frontend/web/; | |
index index.php; | |
error_log /var/log/nginx/front.error.log; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; # listen for IPv4 | |
server_name vseprosto.dev; | |
root /Volumes/storage/work-web/www/yii2/vse-prosto; | |
#access_log off; | |
#error_log /dev/null crit; | |
charset utf-8; | |
client_max_body_size 100M; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Author: Pavel Naumenko | |
*/ | |
namespace console\controllers; | |
use common\models\User; | |
use yii\base\InvalidConfigException; | |
use yii\console\Controller; | |
use yii\rbac\DbManager; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static function CreateLead($authHeader, $url) | |
{ | |
$newName = "Test-name-vintage"; | |
$email = "vintage@vintage.com.ua"; | |
$phone = "111111111"; | |
$desc = ''; | |
$lang = ''; | |
$pageUrl = ''; | |
$formData = '(100000001, 100000000)'; | |
$productUrl = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static function CreateLead($authHeader, $url) | |
{ | |
$newName = "Test-name-vintage"; | |
$email = "vintage@vintage.com.ua"; | |
$phone = "111111111"; | |
$desc = ''; | |
$lang = ''; | |
$pageUrl = ''; | |
$formData = ''; | |
$productUrl = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Author: Pavel Naumenko | |
*/ | |
namespace frontend\components; | |
use yii\base\ActionEvent; | |
use yii\base\Behavior; | |
use yii\helpers\ArrayHelper; |