PHP in ein Template zu packen ist kompletter Blödsinn. Dafür sind Templates nicht gemacht. Templates sollen nur die Ausgabe erstellen. Jegliche Berechnungen sind in die Klassen zu packen.
Wenn du trotzdem das IncludePHP Plugin nutzen willst:
|
PHP Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/**
* The 'includePHP' compiler function includes and executes PHP files from the local file system.
*
* Usage:
* {includePHP file='x.php'}
* {includePHP file='x.php' assign=var}
* {includePHP file='x.php' once=true}
*
* @package com.woltlab.wcf.system.template.plugin
* @author Marcel Werk
* @copyright 2001-2007 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
*/
|