how to add current user id to menu link in joomla

I want to pass the user id as filter with menu link to select items from list of database object that belong to that user. How to add current user id to menu link. The xml file parmaters are static I think. They doesnt work.


You don't need to add the User ID to the menu link (and security wise it's probably a very bad idea). You can retrieve the User ID of the current user anywhere in Joomla!.

e.g. ( you haven't specified your Joomla! version but for 2.5 you can get it this way )

$user = JFactory::getUser();
$userId = $user->get('id');

Need Your Help

How can I install PHP APC via Pecl with Puppet

vagrant pear puppet pecl

I am attempting to install PHP APC on Puppet but I do not know how to go about this? Pear is already installed and when I try and execute the command to install PHP APC I presented with an error me...

Pass specific touch events in UIView/UIWindow to the next responder (sendEvent:/hitTest: doesn't work )

iphone objective-c ios keyboard touch

I'm trying to capture all the touch events in a UIKeyboard without breaking its functionality. I've tried: