access current module ID and title

This forum is for general questions about extensions for Joomla! 2.5.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
Hocho
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Aug 27, 2014 11:05 am

access current module ID and title

Post by Hocho » Fri Aug 29, 2014 9:48 am

Currently I'm (still) working on a Joomla 2.5 module. For this module I need to access the module ID and title. I read somewhere that you can access the information of the current modules by using the $module object, however, when I use this it tells me there is no such thing. I've tried this in both the helper and the mod_ file. How could I access the information in my module?

Thanks.

Hocho

User avatar
jackrabbit
Joomla! Ace
Joomla! Ace
Posts: 1473
Joined: Thu May 21, 2009 3:12 am
Location: Florida
Contact:

Re: access current module ID and title

Post by jackrabbit » Fri Aug 29, 2014 12:11 pm

Yes the $module object is correct but you need to define what key you want it to retrieve

$module->id;
$module->title;
Reset Joomla super user password and username simply | http://cmsenergizer.com/website-energy- ... d-remotely


Locked

Return to “Extensions for Joomla! 2.5”