Error Info: Array ( [0] => HY000 [1] => 1045 [2] => Access denied for user 'peter'@'10.27.41.11' (using password: YES) )
in /customers/7/a/f/reportico.org/httpd.www/yii2/vendor/yiisoft/yii2/db/Connection.php at line 710
if ($enableProfiling) { Yii::endProfile($token, __METHOD__); } } catch (\PDOException $e) { if ($enableProfiling) { Yii::endProfile($token, __METHOD__); } throw new Exception($e->getMessage(), $e->errorInfo, (int) $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.
"dbname" => "unknown", "user" => "unknown", "password" => "unknown", ); $this->engine->available_connections = $this->configGet("database.connections"); */ $this->engine->external_connection = \Yii::$app->db->getMasterPdo(); // Pull in Yii CSRF request token $this->engine->csrfToken = \Yii::$app->request->csrfToken; // Set Yii Database Access Config from configuration if ( !defined("SW_FRAMEWORK_DB_DRIVER") )
} /** * Generate singe report output */ public function actionExecute() { $this->engine = $this->module->getReporticoEngine(); $this->engine->access_mode = "REPORTOUTPUT"; // Run single report, no "return button" //$this->engine->access_mode = "SINGLEREPORT"; // Run single report, no access to other reports //$this->engine->Access_mode = "ONEPROJECT"; // Run single report, but with ability to access other reports $this->engine->initial_execute_mode = "EXECUTE"; $this->engine->initial_project = \Yii::$app->request->get("project");
$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();
require __DIR__ . '/../vendor/autoload.php'; require __DIR__ . '/../vendor/yiisoft/yii2/Yii.php'; $config = require __DIR__ . '/../config/web.php'; (new yii\web\Application($config))->run();
$_GET = [ 'target_format' => 'PDF', 'project' => 'northwind', 'report' => 'salestotals.xml', ];