PHP - Check page that is running

0

I have a config.php file, all other site files include it.

I'm having trouble checking which page config.php is currently running.

The only example I found was using is_page but with no success

if(is_page('about')){
    echo "estou na pagina about";
}else{
    echo "não estou na pagina about";
}

Thank you in advance!

    
asked by anonymous 20.02.2018 / 01:44

0 answers