How to get the current active menu name using the Joomla! 1.5 api

H

How Can We Help?

How to get the current active menu name using the Joomla! 1.5 api

By typing the code below within the appropriate place the active menu item name will be echoed to the browser

<?php echo JSite::getMenu()->getActive()->name; ?>

To read more about the JSite class click here

About the author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

About Author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

Follow Me