Adding Includesupport to IntegratedTemplates

From: Date: Wed, 09 Jan 2002 14:50:28 +0000
Subject: Adding Includesupport to IntegratedTemplates
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-3871@lists.php.net to get a copy of this message
Hi, I added Includesupport to IT, because I needed it for one of my projects. Maybe you want to integrate my change into the official development version. I do not know how to use "diff" and my first try resultet in a failure. Here is my change: Replace return $content; with return preg_replace("#<!-- INCLUDE (.*) -->#ime", "\$this->getFile('\\1')",$content); in pear/HTML/IT.php function getFile() around Line 788. In the Template you simply write: <!-- INCLUDE copyright.tpl.html --> to include copyright.tpl.html ... Christian Dickmann

« previous php.pear.dev (#3871) next »