public function actionCharts($url = false) { $this->type = 'charts'; if ($url && PopularDomains::checkPopular($url)) { $this->url = $url; Yii::$app->session->set('url', $url); $webmeup = new Webmeup(); $webmeup->addCookie($url); $this->page_title = "Backlink profile report - " . $url . ', ' . $webmeup->get_title($url); $result = $webmeup->prepearResponce($webmeup->getResponce($url), $url); ksort($result['stock_market_index']['images']); ksort($result['stock_market_index']['nofollow']); ksort($result['stock_market_index']['dofollow']); if (count($result['stock_market_index']['images']) == 0 && count($result['stock_market_index']['nofollow']) == 0 && count($result['stock_market_index']['dofollow']) == 0) { $result = false; } return $this->render('main', ['result' => $result, 'conclusion' => $this->renderPartial('conclusion', ['result' => $webmeup->conclusion($url)])]); } return $this->render('empty_main'); }