Authored by ccbikai

增加个人中心入口

... ... @@ -103,4 +103,4 @@ a {
@include border-radius(10px);
}
@import "layout/header", "layout/footer", "layout/footer_tab", "good", "filter", "loading", "passport/index", "guang/index", "home/index", "category/index", "product/index", "index/index", "shopping-cart/index";
@import "layout/header", "layout/footer", "layout/footer_tab", "good", "filter", "loading", "passport/index", "guang/index", "home/index", "category/index", "product/index", "index/index", "shopping-cart/index", "mine/index";
... ...
.mine-page {
}
\ No newline at end of file
... ...
@import "home";
\ No newline at end of file
... ...
{{> layout/header}}
<div class="mine-page yoho-page">
<div class="mine-header">
<div class="user-info">
<img class="user-avatar" src="1">
<span class="username">Tom</span>
<img class="user-level" src="1">
</div>
<div class="iconfont more-icon">1</div>
</div>
</div>
{{> layout/footer}}
\ No newline at end of file
... ...
<?php
use Action\AbstractAction;
use Plugin\Helpers;
/**
* 个人中心相关的控制器
... ... @@ -20,6 +21,14 @@ class HomeController extends AbstractAction
{
// 目前跳到老站
// $this->go(OLD_MAIN . '/home');
// 渲染模板
// 设置网站标题
$this->setTitle('男生首页');
$this->_view->display('index', array(
'homeHeader' => array('searchUrl' => Helpers::url('/search', null, 'search')),
'pageFooter' => true,
));
}
}
... ...