'alt' => $image->media_title, 'class' => '' ]); } else{ ?> <img src="<?= Yii::getAlias('@web').'/dbassets/images' ?>/portfolio-image/046.png" alt=""> <?php }?> <div class="do-work-item-hover"> <a href="<?= $image->uploadUrl . $image_src ?>" class="do-single-page-link gallery-item2"></a> <div class="do-work-item-details"> <h3 class="do-work-item-title"> <a class="gallery-item" title="<?= $post->post_content ?> " href="<?= $image->uploadUrl . $image_src ?>"><?= $post->post_title ?></a> </h3> <span class="do-work-item-subtitle"><?= $terms ?></span> </div> <a title="<?= $post->post_content ?> " href="<?= $image->uploadUrl . $image_src ?>" class="do-work-item-popup"></a> </div> </div>
} else{ ?> <img src="<?= Yii::getAlias('@web').'/dbassets/images' ?>/portfolio-image/046.png" alt=""> <?php }?> <div class="do-work-item-hover"> <a href="<?= $image->uploadUrl . $image_src ?>" class="do-single-page-link gallery-item2"></a> <div class="do-work-item-details"> <h3 class="do-work-item-title"> <a class="gallery-item" title="<?= $post->post_content ?> " href="<?= $image->uploadUrl . $image_src ?>"><?= $post->post_title ?></a> </h3> <span class="do-work-item-subtitle"><?= $terms ?></span> </div>
*/ public function renderPhpFile($_file_, $_params_ = []) { ob_start(); ob_implicit_flush(false); extract($_params_, EXTR_OVERWRITE); require($_file_); return ob_get_clean(); } /** * Renders dynamic content returned by the given PHP statements.
$this->renderers[$ext] = Yii::createObject($this->renderers[$ext]); } /* @var $renderer ViewRenderer */ $renderer = $this->renderers[$ext]; $output = $renderer->render($this, $viewFile, $params); } else { $output = $this->renderPhpFile($viewFile, $params); } $this->afterRender($viewFile, $params, $output); } array_pop($this->_viewFiles); $this->context = $oldContext;
* @throws InvalidParamException if the view cannot be resolved or the view file does not exist. * @see renderFile() */ public function render($view, $params = [], $context = null) { $viewFile = $this->findViewFile($view, $context); return $this->renderFile($viewFile, $params, $context); } /** * Finds the view file based on the given view name. * @param string $view the view name or the path alias of the view file. Please refer to [[render()]] * on how to specify this parameter.
* These parameters will not be available in the layout. * @return string the rendering result. * @throws InvalidParamException if the view file or the layout file does not exist. */ public function render($view, $params = []) { $content = $this->getView()->render($view, $params, $this); return $this->renderContent($content); } /** * Renders a static string by applying a layout. * @param string $content the static string being rendered
->limit($pages->limit) ->all(); return $this->render('view-client',[ 'term'=>$term, 'posts'=>$posts, 'pages'=>$pages ]);} else{ throw new \yii\web\NotFoundHttpException('The requested page does not exist.'); } } public function actionSendMsg(){
$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();
/* Date Time */ $application->formatter->dateFormat = 'php:' . Option::get('date_format'); $application->formatter->timeFormat = 'php:' . Option::get('time_format'); $application->formatter->datetimeFormat = 'php:' . Option::get('date_format') . ' ' . Option::get('time_format'); $application->run();
$_GET = [ 'id' => '42', ]; $_SERVER = [ 'PHP_PATH' => '/opt/bitnami/php/bin/php', 'FREETDSLOCALES' => '/opt/bitnami/common/etc/locales.conf', 'FREETDSCONF' => '/opt/bitnami/common/etc/freetds.conf', 'OPENSSL_ENGINES' => '/opt/bitnami/common/lib/engines', 'OPENSSL_CONF' => '/opt/bitnami/common/openssl/openssl.cnf', 'SSL_CERT_FILE' => '/opt/bitnami/common/openssl/certs/curl-ca-bundle.crt', 'CURL_CA_BUNDLE' => '/opt/bitnami/common/openssl/certs/curl-ca-bundle.crt', 'LDAPCONF' => '/opt/bitnami/common/etc/openldap/ldap.conf', 'GS_LIB' => '/opt/bitnami/common/share/ghostscript/fonts', 'MAGICK_CODER_MODULE_PATH' => '/opt/bitnami/common/lib/ImageMagick-6.9.8/modules-Q16/coders', 'MAGICK_CONFIGURE_PATH' => '/opt/bitnami/common/lib/ImageMagick-6.9.8/config-Q16:/opt/bitnami/common/', 'MAGICK_HOME' => '/opt/bitnami/common', 'PATH' => '/opt/bitnami/frameworks/laravel/app/Console:/opt/bitnami/frameworks/cakephp/bin:/opt/bitnami/frameworks/codeigniter/bin:/opt/bitnami/frameworks/symfony/bin:/opt/bitnami/frameworks/zendframework/app/Console:/opt/bitnami/git/bin:/opt/bitnami/varnish/bin:/opt/bitnami/sqlite/bin:/opt/bitnami/php/bin:/opt/bitnami/mysql/bin:/opt/bitnami/letsencrypt/:/opt/bitnami/apache2/bin:/opt/bitnami/common/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin', 'USER' => 'daemon', 'HOME' => '/usr/sbin', 'PATH_TRANSLATED' => '/opt/bitnami/apache2/htdocs/dboukart.com/site/view-client', 'PATH_INFO' => '/site/view-client', 'SCRIPT_NAME' => '/index.php', 'REQUEST_URI' => '/index.php/site/view-client?id=42', 'QUERY_STRING' => 'id=42', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REMOTE_PORT' => '46934', 'SCRIPT_FILENAME' => '/opt/bitnami/apache2/htdocs/dboukart.com/index.php', 'SERVER_ADMIN' => '[email protected]', 'CONTEXT_DOCUMENT_ROOT' => '/opt/bitnami/apache2/htdocs/dboukart.com', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'http', 'DOCUMENT_ROOT' => '/opt/bitnami/apache2/htdocs/dboukart.com', 'REMOTE_ADDR' => '172.70.38.39', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '172.26.12.165', 'SERVER_NAME' => 'dboukart.com', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '', 'LD_LIBRARY_PATH' => '/opt/bitnami/sqlite/lib:/opt/bitnami/mysql/lib:/opt/bitnami/apache2/lib:/opt/bitnami/common/lib:/opt/bitnami/sqlite/lib:/opt/bitnami/mysql/lib:/opt/bitnami/apache2/lib:/opt/bitnami/common/lib:/opt/bitnami/git/lib:/opt/bitnami/varnish/lib:/opt/bitnami/varnish/lib/varnish:/opt/bitnami/varnish/lib/varnish/vmods:/opt/bitnami/sqlite/lib:/opt/bitnami/mysql/lib:/opt/bitnami/apache2/lib:/opt/bitnami/common/lib', 'HTTP_CF_IPCOUNTRY' => 'US', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_CONNECTING_IP' => '54.226.226.30', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_CF_VISITOR' => '{"scheme":"http"}', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_CF_RAY' => '86b89f004ec20853-IAD', 'HTTP_X_FORWARDED_FOR' => '54.226.226.30', 'HTTP_ACCEPT_ENCODING' => 'gzip', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'dboukart.com', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php/site/view-client', 'REQUEST_TIME_FLOAT' => 1711639403.743095, 'REQUEST_TIME' => 1711639403, ];