Skip to content

Instantly share code, notes, and snippets.

View githubjeka's full-sized avatar
🍪
focusing

Evgeniy Tkachenko githubjeka

🍪
focusing
  • -20.937103644166523, 164.65842641592772
View GitHub Profile
license: gpl-3.0
<?php
class Item
{
private $cost = 100;
public function getTotal($discount = 7) {
return $this->cost *(100+$discount)/100;
}
}
@githubjeka
githubjeka / installing.md
Last active November 20, 2018 21:36
How install PHP 5.6.0, Nginx, php-fpm on Debian

#Download Sorce PHP

mkdir /opt/php-5.6.0
mkdir /usr/local/src/php5-build
cd /usr/local/src/php5-build
wget http://de.php.net/get/php-5.6.0.tar.bz2/from/this/mirror -O php-5.6.0.tar.bz2
tar jxf php-5.6.0.tar.bz2
cd php-5.6.0/
@githubjeka
githubjeka / index.php
Last active May 8, 2018 20:39
Yii2 Bootstrap modal slide
<?php
Modal::begin(
[
'size' => Modal::SIZE_LARGE,
'options' => ['class'=>'slide'],
]
);
echo $this->render('view', ['model' => $model]);