Notice (8): Undefined index: data_items [APP/View/Helper/GuidesHelper.php, line 23]Code Context$result = $response->getJson();
return $result['data_items'];
}
$http = object(Cake\Http\Client) { [protected] _defaultConfig => [ 'adapter' => null, 'host' => null, 'port' => null, 'scheme' => 'http', 'timeout' => (int) 30, 'ssl_verify_peer' => true, 'ssl_verify_peer_name' => true, 'ssl_verify_depth' => (int) 5, 'ssl_verify_host' => true, 'redirect' => false, 'protocolVersion' => '1.1' ] [protected] _cookies => object(Cake\Http\Cookie\CookieCollection) {} [protected] _adapter => object(Cake\Http\Client\Adapter\Curl) {} [protected] _config => [ 'adapter' => null, 'host' => null, 'port' => null, 'scheme' => 'http', 'timeout' => (int) 30, 'ssl_verify_peer' => true, 'ssl_verify_peer_name' => true, 'ssl_verify_depth' => (int) 5, 'ssl_verify_host' => true, 'redirect' => false, 'protocolVersion' => '1.1' ] [protected] _configInitialized => true } $urlserver = 'https://hajisamali.online/api/guides/listview.json' $response = object(Cake\Http\Client\Response) { [protected] code => (int) 404 [protected] cookies => null [protected] reasonPhrase => 'Not Found' [protected] _xml => null [protected] _json => [ 'message' => 'Controller class Guides could not be found.', 'url' => '/api/guides/listview.json', 'code' => (int) 404, 'file' => '/home/u768114728/domains/hajisamali.online/public_html/vendor/cakephp/cakephp/src/Http/ControllerFactory.php', 'line' => (int) 105 ] [protected] _exposedProperties => [ 'cookies' => '_getCookies', 'body' => '_getBody', 'code' => 'code', 'json' => '_getJson', 'xml' => '_getXml', 'headers' => '_getHeaders' ] [protected] _deprecatedMagicProperties => [ 'cookies' => 'getCookies()', 'body' => 'getStringBody()', 'json' => 'getJson()', 'xml' => 'getXml()', 'headers' => 'getHeaders()' ] [protected] _cookies => [] [protected] _body => null [protected] headers => [ 'Connection' => [ [maximum depth reached] ], 'X-Powered-By' => [ [maximum depth reached] ], 'Content-Type' => [ [maximum depth reached] ], 'Content-Length' => [ [maximum depth reached] ], 'Date' => [ [maximum depth reached] ], 'Server' => [ [maximum depth reached] ], 'Alt-Svc' => [ [maximum depth reached] ] ] [protected] headerNames => [ 'connection' => 'Connection', 'x-powered-by' => 'X-Powered-By', 'content-type' => 'Content-Type', 'content-length' => 'Content-Length', 'date' => 'Date', 'server' => 'Server', 'alt-svc' => 'Alt-Svc' ] [private] protocol => '1.1' [private] stream => object(Zend\Diactoros\Stream) {} } $result = [ 'message' => 'Controller class Guides could not be found.', 'url' => '/api/guides/listview.json', 'code' => (int) 404, 'file' => '/home/u768114728/domains/hajisamali.online/public_html/vendor/cakephp/cakephp/src/Http/ControllerFactory.php', 'line' => (int) 105 ]App\View\Helper\GuidesHelper::getGuides() - APP/View/Helper/GuidesHelper.php, line 23 include - APP/Template/Guides/index.ctp, line 45 Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1420 Cake\View\View::_render() - CORE/src/View/View.php, line 1381 Cake\View\View::render() - CORE/src/View/View.php, line 879 Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 795 Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 126 Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94 Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 234 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Http\Middleware\CsrfProtectionMiddleware::__invoke() - CORE/src/Http/Middleware/CsrfProtectionMiddleware.php, line 120 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51 Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 168 Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65 Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88