$smilies = $config['smilies']; foreach ($smilies['replacearray'] as $key => $smiley) { $smilies['replacearray'][$key] = '<img class= "brow_img" src= "//icon.xcar.com.cn/images/smilies/'. $smiley. '" smilieid= "'. $key. '" border= "0" alt= "" />'; } } foreach ($ret['result'] as $key => $val) { $info = $val['keyValues']; if (in_array($type, [0, 1]) && $val['table'] == 'news') {// văn chương $img = empty($info['img1'])? $info['pic']: $info['img1']; $img = str_replace('-200x150.jpg', '', $img); $hbcounter_system = empty($info['hbcounter_system'])? 0: $info['hbcounter_system']; $fakecount = empty($info['hbcounter_fake'])? 0: $info['hbcounter_fake']; $randomcount = empty($info['hbcounter_random'])? 0: $info['hbcounter_random']; $read_num = $hbcounter_system + $fakecount + $randomcount; $result[$key] = [ 'type' => 1, 'title' => $info['title'], 'author' => $info['author'],
} } foreach ($ret['result'] as $key => $val) { $info = $val['keyValues']; if (in_array($type, [0, 1]) && $val['table'] == 'news') {// văn chương $img = empty($info['img1'])? $info['pic']: $info['img1']; $img = str_replace('-200x150.jpg', '', $img); $hbcounter_system = empty($info['hbcounter_system'])? 0: $info['hbcounter_system']; $fakecount = empty($info['hbcounter_fake'])? 0: $info['hbcounter_fake']; $randomcount = empty($info['hbcounter_random'])? 0: $info['hbcounter_random']; $read_num = $hbcounter_system + $fakecount + $randomcount; $result[$key] = [
if(empty($data['tags_info'][$tag_id])){ $this->redirect404(); } // hoạch thủ tụ hợp hiệt thủ bình sổ cư $data['first_info'] = Detail::get_list_by_strategy_id($tag_id, 0, 20, 0, $update); if(empty($data['first_info'][ "list" ])){ $this->redirect404(); } // hoạch thủ 5 điều đoản thị tần sổ cư bất túc 5 điều bất triển kỳ $data['shortvideo_info'] = Detail::get_list_by_strategy_id($tag_id, 4, 5, 0, $update);
$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__. '/../config/define.php'; 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 = [ 'tag_id' => '1000065', 'type' => '1', 'page' => '1', ];