Last active
September 25, 2017 05:51
-
-
Save ydatech/c2cc10c7f6aaedb2b1a76eabd39d5fcb to your computer and use it in GitHub Desktop.
to om surya
This file contains hidden or 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 | |
| public function extraFields() | |
| { | |
| $extraFields = []; | |
| $extraFields['desaPerServers'] = function ($model) { | |
| $desaPerServers = $model->desaPerServers; | |
| $arrdesaPerServers = []; | |
| foreach ($desaPerServers as $i => $desa) { | |
| array_push( $arrdesaPerServers, [ 'code'=>$desa->code, 'name'=>$desa->name]); | |
| }; | |
| return $arrdesaPerServers; | |
| }; | |
| return $extraFields; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment