return UrunKategoriIcerik::find() ->joinWith('urunKategori') ->where('urun_kategori.durum = :durum', [':durum' => 1]) ->andWhere('slug = :slug', [':slug' => $kategori]) ->andWhere('dil = :dil', [':dil' => Yii::$app->language]) ->one(); }, 3600 * 24); $kats = array(); $kats[] = $kat_db->urun_kategori_id; $kats = array_merge($kats, $this->bagliKategoriler($kat_db->urunKategori)); $sorgu->andWhere(['urun.urun_kategori_id' => $kats]); } $sorgu->orderBy('urun_icerik.urun_id DESC'); if($orderBy = Yii::$app->request->get('order-by')){ if($orderType = Yii::$app->request->get('order-type')){
->andWhere('slug = :slug', [':slug' => $kategori]) ->andWhere('dil = :dil', [':dil' => Yii::$app->language]) ->one(); }, 3600 * 24); $kats = array(); $kats[] = $kat_db->urun_kategori_id; $kats = array_merge($kats, $this->bagliKategoriler($kat_db->urunKategori)); $sorgu->andWhere(['urun.urun_kategori_id' => $kats]); } $sorgu->orderBy('urun_icerik.urun_id DESC');
$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__ . '/../vendor/autoload.php'); require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php'); $config = require(__DIR__ . '/../config/web.php'); (new yii\web\Application($config))->run();
$_GET = [ 'kategori' => 'temperature-instrument', ]; $_SERVER = [ 'LSPHP_ENABLE_USER_INI' => 'on', 'PATH' => '/usr/local/bin:/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'www.lekton.com.tr', 'HTTP_USER_AGENT' => 'claudebot', 'DOCUMENT_ROOT' => '/home/u8959568/public_html', 'REMOTE_ADDR' => '3.16.130.155', 'REMOTE_PORT' => '20529', 'SERVER_ADDR' => '94.73.151.169', 'SERVER_NAME' => 'www.lekton.com.tr', 'SERVER_ADMIN' => 'webmaster@lekton.com.tr', 'SERVER_PORT' => '80', 'REQUEST_SCHEME' => 'http', 'REQUEST_URI' => '/urunler/temperature-instrument', 'REDIRECT_URL' => '/web/urunler/temperature-instrument', 'REDIRECT_REQUEST_METHOD' => 'GET', 'REDIRECT_STATUS' => '200', 'SCRIPT_FILENAME' => '/home/u8959568/public_html/web/index.php', 'QUERY_STRING' => '', 'SCRIPT_URI' => 'http://www.lekton.com.tr/urunler/temperature-instrument', 'SCRIPT_URL' => '/urunler/temperature-instrument', 'SCRIPT_NAME' => '/web/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'X-LSCACHE' => 'on', 'PHP_SELF' => '/web/index.php', 'REQUEST_TIME_FLOAT' => 1713455187.1006689, 'REQUEST_TIME' => 1713455187, ]; $_ENV = [ 'LSPHP_ENABLE_USER_INI' => 'on', 'PATH' => '/usr/local/bin:/bin:/usr/bin', ];