$page_data_right = "<div class='col-md-4'> <div id='success_res'></div> <form method='post' id='orderform'>". $this->order_form_head($trans). $this->options_tree($trans,$lang,$pid ). $this->data_picker($lang, $trans)."<input type='hidden' name='deadline' id='deadline' /> <input type='hidden' value='".$pid."' name='id[]'/> <span class='form-order-btn' id='orderBTN'>".$trans['order_label']."</span> </form> </div>"; $page_data = $page_data_left. $page_data_right; $page_data .= $this->similar_post($v['id'], $v['categ'], $this->_flag,""); $this->_web->session->set('Cake.list', $order_list); $this->_web->session->set('Cake.data', $data_list); //$v['left_bar'] $v['bottom_bar'] $v['right_bar'] return array('left_bar'=>'',
$this->order_form_head($trans). $this->options_tree($trans,$lang,$pid ). $this->data_picker($lang, $trans)."<input type='hidden' name='deadline' id='deadline' /> <input type='hidden' value='".$pid."' name='id[]'/> <span class='form-order-btn' id='orderBTN'>".$trans['order_label']."</span> </form> </div>"; $page_data = $page_data_left. $page_data_right; $page_data .= $this->similar_post($v['id'], $v['categ'], $this->_flag,""); $this->_web->session->set('Cake.list', $order_list);
} } // SINGLE else if($count == 1) { $show_msg="yes"; //$crumbs = $this->categ_list($calldata[0]); $article = $this->single_article($calldata, $d, $trans, $lang); $title_for_single = $article['title']; $title_for_single .= " patvirel torter"; $app_img = $article['app_img']; $page_title = $title_for_single; $page_keyword = $title_for_single; $page_desc = $title_for_single;
$menu = $cms->menu_for_yii_widget($active_flag, $settings['req']['href'] ); //$data['href'] $data['active_flag'] //$menu = $cms->reqest_params(); //SELECTING path $view_path = isset($port) ? $port : 'main'; $page_data = $cms->load_page_by_req($menu, $settings, $trans,$view_path ); $spec_title = isset($path_title) ? $path_title : $page_data['req_title'] ; $this->title = $spec_title; $this->app_img = $page_data['app_img']; $settings['set']['allow_slide'] = $page_data['allow_slide']; $settings['set']['active_flag'] = $active_flag;
<?php // HEADER of the page include "components/header.php"; //CONTENT $parts = $cms->component_contnet($settings['set'], $trans, $page_data); // THEME of the page include "theme".$settings['set']['theme'].".php";
*/ 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
]; } public function actionIndex() { return $this->render('index'); } public function actionCategory() { return $this->render('category');
$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) . '".');
$route = $this->catchAll[0]; $params = array_splice($this->catchAll, 1); } 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();
require(__DIR__ . '/../../common/config/main-local.php'), require(__DIR__ . '/../config/main.php'), require(__DIR__ . '/../config/main-local.php') ); $application = new yii\web\Application($config); $application->run();
$_GET = [ 'slug' => 'Wedding-cake', ]; $_SERVER = [ 'USER' => 'karinecake', 'HOME' => '/home/karinecake', 'FCGI_ROLE' => 'RESPONDER', 'REDIRECT_REDIRECT_SCRIPT_URL' => '/en/Wedding-cake', 'REDIRECT_REDIRECT_SCRIPT_URI' => 'https://www.karinecake.com/en/Wedding-cake', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.karinecake.com', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_SCRIPT_URL' => '/en/Wedding-cake', 'REDIRECT_SCRIPT_URI' => 'https://www.karinecake.com/en/Wedding-cake', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'www.karinecake.com', 'REDIRECT_STATUS' => '200', 'SCRIPT_URL' => '/en/Wedding-cake', 'SCRIPT_URI' => 'https://www.karinecake.com/en/Wedding-cake', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'www.karinecake.com', 'proxy-nokeepalive' => '1', 'HTTP_HOST' => 'www.karinecake.com', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_X_FORWARDED_FOR' => '34.227.112.145', 'HTTP_CF_RAY' => '86baef5459020821-IAD', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_CF_CONNECTING_IP' => '34.227.112.145', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_IPCOUNTRY' => 'US', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'www.karinecake.com', 'SERVER_ADDR' => '37.60.225.15', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '172.70.39.105', 'DOCUMENT_ROOT' => '/home/karinecake/public_html', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/home/karinecake/public_html', 'SERVER_ADMIN' => '[no address given]', 'SCRIPT_FILENAME' => '/home/karinecake/public_html/frontend/web/index.php', 'REMOTE_PORT' => '23544', 'REDIRECT_URL' => '/frontend/web/en/Wedding-cake', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/en/Wedding-cake', 'SCRIPT_NAME' => '/frontend/web/index.php', 'PHP_SELF' => '/frontend/web/index.php', 'REQUEST_TIME_FLOAT' => 1711663665.592221, 'REQUEST_TIME' => 1711663665, ]; $_SESSION = [ '__flash' => [], 'Cake.lang' => 'en', 'AgroContact.id' => [ 'menu_array' => [ [ 'label' => 'Wedding', 'url' => [ '/en/Wedding-cake', ], 'items' => [ [ 'label' => 'sdf', 'url' => [ '/en/sdfsdf', ], ], ], ], [ 'label' => 'Sport', 'url' => '/en/Sport-cake', ], [ 'label' => 'Thematic', 'url' => '/en/Thematic-cake', ], [ 'label' => 'Teeth', 'url' => '/en/Teeth-cake', ], [ 'label' => 'Baby', 'url' => '/en/Baby-cake-', ], [ 'label' => 'Love', 'url' => '/en/Love-cake', ], [ 'label' => 'Christmas', 'url' => '/en/Christmas-cake', ], [ 'label' => 'Cup Cakes', 'url' => '/en/Cup-Cakes', ], [ 'label' => 'Christening', 'url' => '/en/Christening', ], [ 'label' => 'Elegant Cakes', 'url' => '/en/Elegant-Cakes', ], [ 'label' => 'Easter cakes', 'url' => '/en/Easter-Cakes', ], ], 'categ' => '', 'page_label' => '', 'site_map' => '', 'menu_lang' => 'en', ], ];