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 | |
/** | |
* This behavior is for a model having one or more MANY-MANY relations. | |
* | |
* You need a junction table: | |
* | |
* CREATE_TABLE self_target ( | |
* self_id integer(11) NOT NULL, | |
* target_id integer(11) NOT NULL, | |
* ... |
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 | |
namespace app\utils\widgets; | |
use yii\helpers\Html; | |
use yii\widgets\LinkPager; | |
/** | |
* ResponsiveLinkPager can reduce or style each buttons for responsive design. | |
* | |
* Define CSS classes as if maxButtonCount would be so. For example below applies hidden-xs class |
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
#!/bin/bash | |
## Install Golang 1.8 64Bits on Linux (Debian|Ubuntu|OpenSUSE|CentOS) | |
## http://www.linuxpro.com.br/2015/06/golang-aula-1-instalacao-da-linguagem-no-linux.html | |
## Run as root (sudo su) | |
## Thank's @geosoft1 | @gwmoura | |
GO_URL="https://storage.googleapis.com/golang" | |
GO_VERSION=${1:-"1.8.1"} | |
GO_FILE="go$GO_VERSION.linux-amd64.tar.gz" |
NewerOlder