$fileName = basename('Kendra_List.pdf'); $filePath = kendra_base_url.'/mpdf/'.$fileName; header("Cache-Control: public"); header("Content-Description: File Transfer"); header("Content-Disposition: attachment; filename=$fileName"); header("Content-Type: application/pdf"); header("Content-Transfer-Encoding: binary"); // Read the file readfile($filePath); exit; } }
header("Cache-Control: public"); header("Content-Description: File Transfer"); header("Content-Disposition: attachment; filename=$fileName"); header("Content-Type: application/pdf"); header("Content-Transfer-Encoding: binary"); // Read the file readfile($filePath); exit; } }
$args = $this->controller->bindActionParams($this, $params); Yii::trace('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); Yii::$app->controller = $oldController; return $result; } else { $id = $this->getUniqueId(); throw new InvalidRouteException('Unable to resolve the request "' . ($id === '' ? $route : $id . '/' . $route) . '".');
$params = $this->catchAll; unset($params[0]); } try { Yii::trace("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } else { $response = $this->getResponse(); if ($result !== null) { $response->data = $result;
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 = require(__DIR__ . '/config/web.php'); require_once(dirname(__FILE__) .'/constants.php'); (new yii\web\Application($config))->run(); ?>
$_SERVER = [ 'REDIRECT_STATUS' => '200', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_HOST' => 'www.dnreapplyonline.gov.in', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => 'Apache/2.4.18 (Ubuntu) Server at www.dnreapplyonline.gov.in Port 80 ', 'SERVER_SOFTWARE' => 'Apache/2.4.18 (Ubuntu)', 'SERVER_NAME' => 'www.dnreapplyonline.gov.in', 'SERVER_ADDR' => '127.0.0.1', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '127.0.0.1', 'DOCUMENT_ROOT' => '/Data/Website/weexceldemo.com/domains/dnreapplyonline.weexceldemo.com/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/Data/Website/weexceldemo.com/domains/dnreapplyonline.weexceldemo.com/public_html', 'SERVER_ADMIN' => '[no address given]', 'SCRIPT_FILENAME' => '/Data/Website/weexceldemo.com/domains/dnreapplyonline.weexceldemo.com/public_html/index.php', 'REMOTE_PORT' => '38880', 'REDIRECT_URL' => '/displaydata/default/kendralist', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/displaydata/default/kendralist', 'SCRIPT_NAME' => '/index.php', 'PATH_INFO' => '/displaydata/default/kendralist', 'PATH_TRANSLATED' => 'redirect:/index.php/displaydata/default/kendralist/default/kendralist', 'PHP_SELF' => '/index.php/displaydata/default/kendralist', 'REQUEST_TIME_FLOAT' => 1711696956.8610001, 'REQUEST_TIME' => 1711696956, ];