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

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

WBOY
WBOYOriginal
2016-06-13 13:28:47746browse

做过 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 里面写的

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

Statement:
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