PHP code example of aidask / yii-closure-table-behavior
1. Go to this page and download the library: Download aidask/yii-closure-table-behavior library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
aidask / yii-closure-table-behavior example snippets
public function behaviors()
{
return array(
'closureTableBehavior'=>array(
'class'=>'ext.ClosureTableBehavior',
'closureTableName'=>'table_name',
)
);
}