Code
$category = $this->Articles->Categories->find()->where(['slug' => $cat])->toArray();
$articles = $this->paginate($this->Articles->find('Recent', ['limit' => 10, 'category_id' => $category[0]->id]));
$trendingNews = $this->Articles->find('Trending', ['tag_id' => 1, 'max' => 30])->contain(['ArticleResources', 'Categories', 'Tags'])->where(['webstatus_id' => 1, 'Articles.language_id' => 'en']);
App\Controller\ArticlesController->category() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/cakephp/src/Controller/Controller.php, line 560
Cake\Controller\Controller->invokeAction() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 140
Cake\Controller\ControllerFactory->handle() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 115
Cake\Controller\ControllerFactory->invoke() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 325
Cake\Http\BaseApplication->handle() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php, line 86
Cake\Http\Runner->handle() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/authorization/src/Middleware/RequestAuthorizationMiddleware.php, line 110
Authorization\Middleware\RequestAuthorizationMiddleware->process() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/authorization/src/Middleware/AuthorizationMiddleware.php, line 129
Authorization\Middleware\AuthorizationMiddleware->process() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/authentication/src/Middleware/AuthenticationMiddleware.php, line 124
Authentication\Middleware\AuthenticationMiddleware->process() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/cakephp/src/Http/Middleware/CsrfProtectionMiddleware.php, line 166
Cake\Http\Middleware\CsrfProtectionMiddleware->process() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157
Cake\Http\Middleware\BodyParserMiddleware->process() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 189
Cake\Routing\Middleware\RoutingMiddleware->process() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php, line 68
Cake\Routing\Middleware\AssetMiddleware->process() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 149
Cake\Error\Middleware\ErrorHandlerMiddleware->process() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/cakephp/src/Http/Runner.php, line 67
Cake\Http\Runner->run() /var/www/vhosts/canarianweekly.com/httpdocs/vendor/cakephp/cakephp/src/Http/Server.php, line 99
Cake\Http\Server->run() /var/www/vhosts/canarianweekly.com/httpdocs/webroot/index.php, line 40
[main]