RPeraltaJr
8/3/2018 - 4:01 PM

Get filename / Assign page name

<?php 

$page_name = basename(__FILE__, '.php'); // returns 'index'