Authored by yangyang

完成频道选择页

@@ -15,15 +15,15 @@ class IndexController extends AbstractAction @@ -15,15 +15,15 @@ class IndexController extends AbstractAction
15 */ 15 */
16 public function indexAction() 16 public function indexAction()
17 { 17 {
18 - if (null !== $this->get('go')) {  
19 - // 先检查COOKIE是否有访问过, 有则跳转到相应的频道页  
20 - Index\HomeModel::goSwitchChannel();  
21 - } else {  
22 - // 设置客户端浏览器1小时内不改变,  
23 - $this->setLastModified(mktime(date('H'), 0, 0, date('n'), date('j'), date('Y')));  
24 - // 设置浏览器缓存5分钟  
25 - $this->setExpires(300);  
26 - } 18 +// if (null !== $this->get('go')) {
  19 +// // 先检查COOKIE是否有访问过, 有则跳转到相应的频道页
  20 +// Index\HomeModel::goSwitchChannel();
  21 +// } else {
  22 +// // 设置客户端浏览器1小时内不改变,
  23 +// $this->setLastModified(mktime(date('H'), 0, 0, date('n'), date('j'), date('Y')));
  24 +// // 设置浏览器缓存5分钟
  25 +// $this->setExpires(300);
  26 +// }
27 $result = IndexModel::getChannel(); 27 $result = IndexModel::getChannel();
28 $result['background'] = Index\HomeModel::getBgImage(); 28 $result['background'] = Index\HomeModel::getBgImage();
29 $result['channelPage'] = true; 29 $result['channelPage'] = true;
@@ -17,7 +17,7 @@ class IndexModel @@ -17,7 +17,7 @@ class IndexModel
17 { 17 {
18 public function getChannel(){ 18 public function getChannel(){
19 $result = array(); 19 $result = array();
20 - $result['showYohood'] = false; 20 + $result['showYohood'] = true;
21 21
22 $data = IndexData::channelData(); 22 $data = IndexData::channelData();
23 23