Author Topic: list of available variables in RC  (Read 2882 times)

Offline andros69

  • Jr. Member
  • **
  • Posts: 29
list of available variables in RC
« on: May 10, 2009, 09:58:53 PM »
Hi all,

I tried doing a search for this but didn't find anything like what I'm looking for.

Is there a list somewhere where you can find all the available variables in RC to use when skinning? I know theme documentation is something scheduled for future releases, but I was wondering if at least a list was already available now, even if with limited documentation.


Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
list of available variables in RC
« Reply #1 on: May 11, 2009, 01:28:44 AM »
Generally you can use all POST, GET, SESSION and CONFIG variables.

Set $rcmail_config['skin_include_php'] = TRUE; and create a include file in your "./skins/myskin/includes" folder:

echo "<pre>";
print_r($_GET); print_r($_POST); print_r($_SESSION); print_r($CONFIG);

Now if you include this file into a template, you can see what actually is available for this task/action.

In addition there are template objects. The functions for these objects are located in "./program/steps/--task--/". Look for "$OUTPUT->add_handlers".
MyRoundcube Project (commercial)