Not logged in. · Lost password · Register
Forum: General Discussion General Stuff RSS
obtaining the $ID in context.php
modifying some code but unable to get hold of a few variables
terrorchid #1
Member since Sep 2007 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: obtaining the $ID in context.php
Hi all,

I'm modifying the "writeMBPortlet" code from monobook. In this function I would like to use
the $ID and $INFO variables, without passing them through the function call. What's the
most kosher way of obtaining these ?

regards,
Fred
Avatar
andi (Administrator) #2
Member since May 2006 · 654 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
How about?

  1. global $ID;
  2. global $INFO;
Read this if you don't get any useful answers.
terrorchid #3
Member since Sep 2007 · 3 posts
Group memberships: Members
Show profile · Link to this post
It's official, I'm an idiot.

thanks andi
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please note the verification code from the picture into the text field next to it.
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 1.6.4, © 2003-7 by Yves Goergen
Current time: 2008-05-17, 06:24:24 (UTC +02:00)
WikiForumIRCBugsTranslate