/节点列表
    public function node(){
        
        if(!$node = S('node_list')){
            $field = array('id', 'name', 'title', 'pid');
            $node = M('node')->field($field)->order('sort')->select();
            $node = node_merge($node);
            S('node_list', $node, 3600);    //将节点列表缓存1小时
        }
        $this->node = $node;
        $this->display();
    }
    

 

相关文章:

  • 2021-08-27
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
  • 2021-11-28
  • 2021-06-29
猜你喜欢
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
相关资源
相似解决方案