Code
'nr' => function ($coord) use ($codigos) { return '"'.$codigos[$coord->location_name].'"'; },
'attributes' => function ($coord) { return json_encode($this->locateTable('Conflicto')->find('all',['contain'=>['Vocabulario']])->select(['Conflicto.id','Conflicto.nombre','Conflicto.lugar','Conflicto.nota','Conflicto.iniciodestruc','Conflicto.inicioconflict'])->where(['Vocabulario.lista'=>'15' ])->where(['Conflicto.published'=> 1])->where(['Vocabulario.codigo' => $coord->conflicto_por_pais->codigo])->toArray()); }
];
App\Controller\LocationController->App\Controller\{closure}() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/src/Controller/LocationController.php, line 104
App\Controller\LocationController->locations() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/src/Controller/LocationController.php, line 417
App\Controller\LocationController->App\Controller\{closure}() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Cache/Cache.php, line 591
Cake\Cache\Cache::remember() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/src/Controller/LocationController.php, line 416
App\Controller\LocationController->conflictos() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Controller/Controller.php, line 560
Cake\Controller\Controller->invokeAction() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 140
Cake\Controller\ControllerFactory->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 115
Cake\Controller\ControllerFactory->invoke() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 325
Cake\Http\BaseApplication->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 86
Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Middleware/CsrfProtectionMiddleware.php, line 166
Cake\Http\Middleware\CsrfProtectionMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157
Cake\Http\Middleware\BodyParserMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 189
Cake\Routing\Middleware\RoutingMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php, line 77
Cake\Routing\Middleware\AssetMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 149
Cake\Error\Middleware\ErrorHandlerMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 67
Cake\Http\Runner->run() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Server.php, line 99
Cake\Http\Server->run() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/webroot/index.php, line 37
[main]