Author Topic: php in templates  (Read 3361 times)

Offline markybob

  • Newbie
  • *
  • Posts: 5
php in templates
« on: January 10, 2009, 11:01:42 PM »
is it possible to have php code in the template?

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
php in templates
« Reply #1 on: January 11, 2009, 02:47:38 AM »
./config/main.inc.php:

// includes should be interpreted as PHP files
$rcmail_config['skin_include_php'] = TRUE;

I have it never tried ...
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline markybob

  • Newbie
  • *
  • Posts: 5
php in templates
« Reply #2 on: January 11, 2009, 02:51:11 AM »
Quote from: rosali;16220
./config/main.inc.php:

// includes should be interpreted as PHP files
$rcmail_config['skin_include_php'] = TRUE;

I have it never tried ...


hrm...doesnt seem to do anything here.  still doesnt get interpreted.  any other thoughts?

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
php in templates
« Reply #3 on: January 11, 2009, 03:03:02 AM »
Works for me ...

You can't place php code directly in the template, but you can include php scripts if setting is true:

Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline markybob

  • Newbie
  • *
  • Posts: 5
php in templates
« Reply #4 on: January 11, 2009, 03:04:25 AM »
Quote from: rosali;16222
Works for me ...

You can't place php code directly in the template, but you can include php scripts if setting is true:



ah, i see.  thanks :)