Home > Backend Development > PHP Tutorial > 做过 DEDE CMS 的帮忙看下!多谢!

做过 DEDE CMS 的帮忙看下!多谢!

WBOY
Release: 2016-06-13 10:26:22
Original
771 people have browsed it

做过 DEDE CMS 的帮忙看下!急!谢谢!!
{dede:php}session_start();{/dede:php}





{dede:php}


function all($v)
{

 exit($_SESSION[cfcs]);

  $res='';
 if(empty($_SESSION[$v]))
  $res='class="all"';
  
  return $res;
 
}

function on($v,$n)
{
  $res='';
  if($_SESSION[$v]==$n)
  $res='class="all"';
  return $res; 
}


{/dede:php}



我在模板文件里这么写,但是发现一刷新后,session 的值就没了,这个session是在 index.php 里面写的

------解决方案--------------------
晕,那把分给我吧

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template