Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php show active page

$activePage = basename($_SERVER['PHP_SELF'], ".php");
Comment

php show active page

<ul class="nav navbar-nav">
      <li class="<?= ($activePage == 'index') ? 'active':''; ?>"><a href="index.php">Home</a></li>
      <li class="<?= ($activePage == 'contact-us') ? 'active':''; ?>"><a href="contact-us.php">Contact</a></li>
</ul>
Comment

PREVIOUS NEXT
Code Example
Php :: php split array in half 
Php :: php money_format currency symbol 
Php :: <?php echo do_shortcode(); ? with variable 
Php :: how to delete php from win10 
Php :: check current pages is a child page wordpress 
Php :: blade if 
Php :: validate each value from array laravel 
Php :: php check request method 
Php :: eloquent whereraw 
Php :: how to use postgresql with laravel 
Php :: sendinblue send mail 
Php :: get all category custom post type wordpress dev 
Php :: item count in cart quantitiy woocommerce 
Php :: php strftime 
Php :: php send telegram message to user 
Php :: mac address php 
Php :: db raw update laravel 
Php :: reset password multipple database laravel 
Php :: get ip country 
Php :: wordpress register post type 
Php :: laravel foreach loop 
Php :: laravel launch only one dusk test 
Php :: bigtext migration laravel 
Php :: Line : 83 -- syntax error, unexpected end of file php 
Php :: Modes for File Read PHP 
Php :: how to cheeck php 
Php :: clear laravel.log 
Php :: erreur php 
Php :: laravel empty query result 
Php :: php check valid time format 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =