20212223242526272829303132333435363738 $nav_3_list = Category::find()->where(['pid' => Yii::$app->params['lanmu']['topCat']['id']])->andWhere(['status'=>1])->orderBy("sort asc")->all();
$nav_3_key = Yii::$app->params['lanmu']['key'];
}
?>
2.
in /www/wwwroot/www.mgmotorgas.com/frontend/views/layouts/public/_nav_product_list_common.php
at line 29
– yii\base\ErrorHandler::handleError(2, 'Invalid argument supplied for fo...', '/www/wwwroot/www.mgmotorgas.com/fron...', 29, ...)
23242526272829303132333435
?>
3.
in /www/wwwroot/www.mgmotorgas.com/vendor/yiisoft/yii2/base/View.php
at line 329
– require('/www/wwwroot/www.mgmotorgas.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.mgmotorgas.com/vendor/yiisoft/yii2/base/View.php
at line 251
– yii\base\View::renderPhpFile('/www/wwwroot/www.mgmotorgas.com/fron...', ['content' => ''])
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.mgmotorgas.com/vendor/yiisoft/yii2/widgets/ContentDecorator.php
at line 77
– yii\base\View::renderFile('@app/views/layouts/public/_nav_p...', ['content' => ''])
717273747576777879 */
public function run()
{
$params = $this->params;
$params['content'] = ob_get_clean();
// render under the existing context
echo $this->view->renderFile($this->viewFile, $params);
}
}
71727374757677787980818283 */
public static function end()
{
if (!empty(static::$stack)) {
$widget = array_pop(static::$stack);
if (get_class($widget) === get_called_class()) {
echo $widget->run();
return $widget;
} else {
throw new InvalidCallException('Expecting end() of ' . get_class($widget) . ', found ' . get_called_class());
}
} else {
throw new InvalidCallException('Unexpected ' . get_called_class() . '::end() call. A matching begin() is not found.');
7.
in /www/wwwroot/www.mgmotorgas.com/vendor/yiisoft/yii2/base/View.php
at line 437
– yii\base\Widget::end()
431432433434435436437438439440441442443
/**
* Ends the rendering of content.
*/
public function endContent()
{
ContentDecorator::end();
}
/**
* Begins fragment caching.
* This method will display cached content if it is available.
* If not, it will start caching and would expect an [[endCache()]]
15161718192021222324252627
beginContent('@app/views/layouts/public/_nav_product_list_common.php') ?>
endContent() ?>
params['top_lanmu']->nextTree as $key=>$value):?>
-
9.
in /www/wwwroot/www.mgmotorgas.com/vendor/yiisoft/yii2/base/View.php
at line 329
– require('/www/wwwroot/www.mgmotorgas.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.
10.
in /www/wwwroot/www.mgmotorgas.com/vendor/yiisoft/yii2/base/View.php
at line 251
– yii\base\View::renderPhpFile('/www/wwwroot/www.mgmotorgas.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;
11.
in /www/wwwroot/www.mgmotorgas.com/vendor/yiisoft/yii2/base/View.php
at line 150
– yii\base\View::renderFile('/www/wwwroot/www.mgmotorgas.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.
12.
in /www/wwwroot/www.mgmotorgas.com/vendor/yiisoft/yii2/base/Controller.php
at line 378
– yii\base\View::render('productList', [], 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
61626364656667686970717273 /**
* 手机端结束
*/
Yii::$app->params['list'] = $list?:[];
Yii::$app->params['list_view'] = true;
return $this->render('productList');
}
private function articleList($key){
if (Yii::$app->params['lanmu']['pid']==5){//关于我们的页面
14.
in /www/wwwroot/www.mgmotorgas.com/frontend/controllers/ListController.php
at line 33
– frontend\controllers\ListController::productList('cdq')
27282930313233343536373839 $key = $this->getClassName();
Yii::$app->params['key'] = $key;
$cat = Category::findOne(['key'=>$key]);
if ($cat) {
parent::common();
if ($cat->type==1){
$this->productList($key);
}else{
$this->articleList($key);
}
}else{
throw new \yii\web\NotFoundHttpException('The requested page does not exist.',404);
15.
frontend\controllers\ListController::actionIndex()
16.
in /www/wwwroot/www.mgmotorgas.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 */
18.
in /www/wwwroot/www.mgmotorgas.com/vendor/yiisoft/yii2/base/Module.php
at line 454
– yii\base\Controller::runAction('index', ['controller' => 'cdq'])
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 {
19.
in /www/wwwroot/www.mgmotorgas.com/vendor/yiisoft/yii2/web/Application.php
at line 100
– yii\base\Module::runAction('list/index', ['controller' => 'cdq'])
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' => 'cdq',
];