Re: [SMARTY-DEV] Re: [SMARTY] Plugindir
| From: | Andrei Zmievski | Date: | Mon, 15 Apr 2002 19:35:22 +0000 |
| Subject: | Re: [SMARTY-DEV] Re: [SMARTY] Plugindir | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-67@lists.php.net to get a copy of this message | ||
On Fri, 12 Apr 2002, Jan Rosier wrote:
> I'm legging a bit behide in the discusion, but still some thoughts:
>
> If one uses {include_php file="myScript.php"} in a template the compiler
> basicly replaces it with <?php include("myScript.php"); ?>'; plus some
> extras. That is just fine if the scripts is somewhere in the include_path of
> PHP. When PHP should find it and do the job. ;-)
> ( use .htaccess => php_value include_path
> .:/path/to/my/php/scripts/php-include to set the path)
>
> The problem arises when the compiler tries to find the file in the function
> _get_php_resource (line 712 of Smarty.class.php). This will return that the
> file is not readable and than the compiler will stop and complane ;-). Maybe
> the include_path could be take in account here.
>
> The same goes I think for {insert name="getBanner" script="myScript.php"}.
> The function _run_insert_handler also uses function _get_php_resource to
> find the file myScript.php
This has been fixed now, thanks.
-Andrei
* There is no knowledge that is not power. -- Ralph Waldo Emerson *