Error Info: Array ( [0] => HY000 [1] => 1045 [2] => Access denied for user 'root'@'localhost' (using password: YES) )
in /var/www/html/connectedh-b2c/vendor/yiisoft/yii2/db/Connection.php at line 722
if ($enableProfiling) { Yii::endProfile($token, __METHOD__); } } catch (\PDOException $e) { if ($enableProfiling) { Yii::endProfile($token, __METHOD__); } throw new Exception($e->getMessage(), $e->errorInfo, $e->getCode(), $e); } } /** * Closes the currently active DB connection. * It does nothing if the connection is already closed. */ public function close() {
* Returns the PDO instance for the currently active master connection. * This method will open the master DB connection and then return [[pdo]]. * @return PDO the PDO instance for the currently active master connection. */ public function getMasterPdo() { $this->open(); return $this->pdo; } /** * Returns the currently active slave connection. * If this method is called for the first time, it will try to open a slave connection when [[enableSlaves]] is true.
* is available and `$fallbackToMaster` is false. */ public function getSlavePdo($fallbackToMaster = true) { $db = $this->getSlave(false); if ($db === null) { return $fallbackToMaster ? $this->getMasterPdo() : null; } return $db->pdo; } /**
if ($this->db->getTransaction()) { // master is in a transaction. use the same connection. $forRead = false; } if ($forRead || $forRead === null && $this->db->getSchema()->isReadQuery($sql)) { $pdo = $this->db->getSlavePdo(); } else { $pdo = $this->db->getMasterPdo(); } try { $this->pdoStatement = $pdo->prepare($sql);
* @param mixed $driverOptions the driver-specific options * @return $this the current command being executed * @see https://www.php.net/manual/en/function.PDOStatement-bindParam.php */ public function bindParam($name, &$value, $dataType = null, $length = null, $driverOptions = null) { $this->prepare(); if ($dataType === null) { $dataType = $this->db->getSchema()->getPdoType($value); } if ($length === null) { $this->pdoStatement->bindParam($name, $value, $dataType);
$this->_api->requestParams = [ "labLinkReWrite" => $labLinkReWrite ]; $LabData = $this->_api->getData (); $locality_id = $LabData ['labDetails'] ['locality_id']; $location = Yii::$app->db->createCommand ( 'Select * from locality left join city using (city_id) where locality_id=:locality_id' )->bindParam ( 'locality_id', $locality_id )->queryOne (); $LabData['location']=$location; $title = $LabData ['labDetails'] ['name'] . " " . $location ['locality_name'] . ", " . $location ['city_name'] . " | Get Pricelist, Timings and Address | ConnectedH"; $description = "Get tested at " . $LabData ['labDetails'] ['name'] . " located in " . $location ['locality_name'] . " near you. Check Pricelist, Lab Timings and get Address through SMS & Email at Connectedh."; $seo ['title'] = $title; $seo ['description'] = $description;
$this->_labService = $labService; $this->_labincityService = $labincityService; $this->_blogService = $blogService; $this->_filterService= $filterService; } public function actionLabDetails($labLinkReWrite) { $labData = $this->_labService->getLabDetailByCity ( $labLinkReWrite ); $tests = ''; $rating = ''; $packages = ''; $accreditation = ''; $wk = '';
$args = $this->controller->bindActionParams($this, $params); Yii::debug('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } return call_user_func_array([$this->controller, $this->actionMethod], $args); } }
} $result = null; if ($runAction && $this->beforeAction($action)) { // run the action $result = $action->runWithParams($params); $result = $this->afterAction($action, $result); // call afterAction on modules foreach ($modules as $module) { /* @var $module Module */
$parts = $this->createController($route); if (is_array($parts)) { /* @var $controller Controller */ list($controller, $actionID) = $parts; $oldController = Yii::$app->controller; Yii::$app->controller = $controller; $result = $controller->runAction($actionID, $params); if ($oldController !== null) { Yii::$app->controller = $oldController; } return $result; }
$params = $this->catchAll; unset($params[0]); } try { Yii::debug("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } $response = $this->getResponse(); if ($result !== null) {
{ try { $this->state = self::STATE_BEFORE_REQUEST; $this->trigger(self::EVENT_BEFORE_REQUEST); $this->state = self::STATE_HANDLING_REQUEST; $response = $this->handleRequest($this->getRequest()); $this->state = self::STATE_AFTER_REQUEST; $this->trigger(self::EVENT_AFTER_REQUEST); $this->state = self::STATE_SENDING_RESPONSE; $response->send();
$config['params']['ismobile']=1; //header('Location: http://detectmobilebrowser.com/mobile'); (new yii\web\Application($config))->run(); } else { $config['params']['ismobile']=0; (new yii\web\Application($config))->run(); }
$_GET = [ 'labLinkReWrite' => 'thyrocare-vashi-navi-mumbai', ];