Show active navigation for current page with php

后端 未结 3 840
难免孤独
难免孤独 2021-01-06 09:46

I\'m trying to use use $current_url = basename($_SERVER[\'PHP_SELF\']); to determine which page I am on, considering my navigation (html) is stored in a php fil

3条回答
  •  心在旅途
    2021-01-06 10:40

    You should do it like this:

  • >Overview
  • because right now you're conditioning the presence of the opening

  • tag

提交回复
热议问题