Members: 16,996
Threads: 38,867
Posts: 159,477
Online: 44

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 09.12.2004, 03:27   #1 (permalink)
Baby Mamber
 
Join Date: Dec 2004
Posts: 5
skelly is on a distinguished road
Default Global variables

I'm writing a custom component derived from a "hello world" tutorial I found linked elsewhere on the site. Up to now my only experience coding mambo components has been on a highly customized/hacked configuration that bypasses tons of the hierarchical objects and makes things super easy to access. On that system I am able to access global variables $uid and $gid to get the current logged in user's id & group id. Alas, this seems not to work in 4.5.1, so I am searching for how to retrieve those values from a 4.5.1 component and what other values should be accessible that may be of use. Any help?

Thanks!
- SK
skelly is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 09.12.2004, 03:52   #2 (permalink)
Baby Mamber
 
Join Date: Dec 2004
Posts: 5
skelly is on a distinguished road
Default Re: Global variables

Found the uid: $my->id

What other global variables/structures are available?
skelly is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09.12.2004, 10:29   #3 (permalink)
Professional Mamber
 
zorkhh's Avatar
 
Join Date: Apr 2004
Location: Northern Germany
Posts: 713
zorkhh is on a distinguished road
Default Re: Global variables

Hi,

sorry, i don't know if there's a list of them available. I would like to have it too. You might go top the /includes/ directory and view the code in there. You can learn a lot of it - esp. mambo.php and database.php

hth

ZorkHH
__________________
News and stories around Joomla! PlanetJoomla.com
For individual Joomla-AddOns visit Joomlaexpert.com
zorkhh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20.12.2005, 22:33   #4 (permalink)
Baby Mamber
 
Join Date: Dec 2005
Posts: 3
paww is on a distinguished road
Default Re: Global variables

Try
PHP Code:
 foreach($my as $var => $value) {
        echo (
"<b>$var :</b> $value<br>");
    } 
you will simply get the list:

id : 62
name :
username : admin
email :
password :
usertype : Super Administrator
block :
sendEmail :
gid : 2
registerDate :
lastvisitDate :
activation :
params : editor=tinymce
_tbl : #__users
_tbl_key : id
_error :
_db : Object
paww is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mambo Variables and Funktions schibumi Mambo 4.5.1 'How Do I' Questions 1 24.10.2004 21:16
Environment Variables script ApSpecialists Mambo 4.5 Installation and Upgrades 0 07.08.2004 03:43
global configuration not saving settings? lisad Mambo 4.5 Bugs 0 06.06.2004 18:43
Global Config marcella Mambo 4.5 'How Do I' Questions 3 14.05.2004 21:11
Site won't come up after making change in Global Configuration ikitajima Mambo 4.5 General Talk 5 11.04.2004 17:13


All times are GMT +2. The time now is 04:36.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.