Config var and include_php

From: Date: Tue, 06 Aug 2002 09:24:34 +0000
Subject: Config var and include_php
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5592@lists.php.net to get a copy of this message
Hello, I've got a little problem. Even though i've been using smarty for a year i've tried this before. I want to have a config file which sets a path paths.conf webdir = "/www/web" then in my template i want to use it in include_php. How is this supposed to work ? I tried {config_load file="paths.conf"} {include_php file="#webdir#/logged.php"} Or {config_load file="paths.conf"} {assign var="WEB_DIR" value=#webdir#} {include_php file="$WEB_DIR/logged.php"} without success. I'm at a loss here, somebody out there knowing what's going on ? ps: i run Smarty 2.0 Arnaud.

« previous php.smarty.general (#5592) next »