提交 f0af763e 编写于 作者: T Terry 提交者: GitHub

Apply fixes from StyleCI (#14)

上级 722aaab5
......@@ -46,7 +46,7 @@ class Index
$productCollInfo = $this->getSearchProductColl();
$products = $productCollInfo['coll'];
$this->_productCount = $productCollInfo['count'];
if (Yii::$app->request->isAjax) {
if (Yii::$app->request->isAjax) {
$this->getAjaxProductHtml($products);
}
//echo $this->_productCount;
......@@ -68,7 +68,7 @@ class Index
//'created_at' => $this->_category['created_at'],
];
}
protected function getAjaxProductHtml($products)
{
$parentThis['products'] = $products;
......@@ -82,7 +82,6 @@ class Index
exit;
}
/**
* 得到子分类,如果子分类不存在,则返回同级分类。
*/
......
......@@ -9,8 +9,8 @@
namespace fecshop\app\apphtml5\modules\Catalogsearch\controllers;
use Yii;
use fecshop\app\apphtml5\modules\AppfrontController;
use Yii;
/**
* @author Terry Zhao <2358269014@qq.com>
......@@ -18,7 +18,7 @@ use fecshop\app\apphtml5\modules\AppfrontController;
*/
class IndexController extends AppfrontController
{
public function init()
public function init()
{
parent::init();
Yii::$service->page->theme->layoutFile = 'category_view.php';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册