jeudi 26 août 2021

Collapse sidebar when in certain pages (PHP) [duplicate]

Hope you are all doing well.

I'm working on a Codeigniter project for example I want when the user enters this page :

http://localhost:8080/admin/clients

I want the sidebar to stay shown but once he enters a sub-page like

http://localhost:8080/admin/clients/add 

I want the sidebar to be Hidden

Here's my code :

if($actual_link == admin_url().'/clients/**'){ ?>
    <body class="hide-sidebar">
<?php } else { ?>
    <body>
<?php } ?>

I tried this Code but it didn't work .



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3mBjKfs
via IFTTT

Aucun commentaire:

Enregistrer un commentaire