891011121314151617181920212223242526
=Yii::$app->params['item']['topLeftContent']['title']?>
=Yii::$app->params['item']['topLeftContent']['sub_title']?>
params['item']['adIco'] as $key=>$value):?>
2.
in /www/wwwroot/www.luyingzhinenggui.com/frontend/views/case/item.php
at line 17
– yii\base\ErrorHandler::handleError(2, 'Invalid argument supplied for fo...', '/www/wwwroot/www.luyingzhinenggui.com/fron...', 17, ...)
11121314151617181920212223
=Yii::$app->params['item']['topLeftContent']['sub_title']?>
params['item']['adIco'] as $key=>$value):?>
3.
in /www/wwwroot/www.luyingzhinenggui.com/vendor/yiisoft/yii2/base/View.php
at line 329
– require('/www/wwwroot/www.luyingzhinenggui.com/fron...')
323324325326327328329330331332333334335 */
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.
4.
in /www/wwwroot/www.luyingzhinenggui.com/vendor/yiisoft/yii2/base/View.php
at line 251
– yii\base\View::renderPhpFile('/www/wwwroot/www.luyingzhinenggui.com/fron...', [])
245246247248249250251252253254255256257 $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;
5.
in /www/wwwroot/www.luyingzhinenggui.com/vendor/yiisoft/yii2/base/View.php
at line 150
– yii\base\View::renderFile('/www/wwwroot/www.luyingzhinenggui.com/fron...', [], frontend\controllers\ListController)
144145146147148149150151152153154155156 * @throws InvalidCallException if the view cannot be resolved.
* @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.
6.
in /www/wwwroot/www.luyingzhinenggui.com/vendor/yiisoft/yii2/base/Controller.php
at line 378
– yii\base\View::render('/case/item', [], frontend\controllers\ListController)
372373374375376377378379380381382383384 * 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
7.
in /www/wwwroot/www.luyingzhinenggui.com/frontend/controllers/ListController.php
at line 98
– yii\base\Controller::render('/case/item')
9293949596979899100101102103104 }
private function caseList($key){
// $ad_key = 'case-' . $key . '-ico';
// Yii::$app->params['ico_list'] = Ad::keyGetList($ad_key);
Yii::$app->params['item'] = CasePage::find()->where(['key' => $key,])->one();
return $this->render('/case/item');
}
private function common_product_list(){
$url=Yii::$app->request->hostInfo.Yii::$app->request->url;
//处理分页和排序的问题
8.
in /www/wwwroot/www.luyingzhinenggui.com/frontend/controllers/ListController.php
at line 38
– frontend\controllers\ListController::caseList('case')
32333435363738394041424344 parent::common();
if ($cat->type==1){
$this->productList($key);
}elseif ($cat->type==2){
$this->articleList($key);
}else{
$this->caseList($key);
}
}else{
throw new \yii\web\NotFoundHttpException('The requested page does not exist.',404);
}
9.
frontend\controllers\ListController::actionIndex()
10.
in /www/wwwroot/www.luyingzhinenggui.com/vendor/yiisoft/yii2/base/InlineAction.php
at line 55
– call_user_func_array([frontend\controllers\ListController, 'actionIndex'], [])
495051525354555657 $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);
}
}
148149150151152153154155156157158159160 }
$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 */
12.
in /www/wwwroot/www.luyingzhinenggui.com/vendor/yiisoft/yii2/base/Module.php
at line 454
– yii\base\Controller::runAction('index', ['controller' => 'case'])
448449450451452453454455456457458459460 $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;
} else {
13.
in /www/wwwroot/www.luyingzhinenggui.com/vendor/yiisoft/yii2/web/Application.php
at line 100
– yii\base\Module::runAction('list/index', ['controller' => 'case'])
949596979899100101102103104105106 $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;
369370371372373374375376377378379380381 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();
18192021222324 require(__DIR__ . '/../../common/config/main.php'),
require(__DIR__ . '/../../common/config/main-local.php'),
require(__DIR__ . '/../config/main.php'),
require(__DIR__ . '/../config/main-local.php')
);
(new yii\web\Application($config))->run();
$_GET = [
'controller' => 'case',
];