Author |
Message |
Topic: more compiler functions |
shuther
Replies: 0
Views: 11378
|
Forum: Plugins Posted: Fri Apr 16, 2004 3:20 pm Subject: more compiler functions |
I think it would be good to have more compiler functions, or to remove/move the functions we have into compilers.
I did it for the ocnfig_load plug ins.
File: compiler.config_load.php
<?php
/ ... |
Topic: compile function |
shuther
Replies: 1
Views: 8605
|
Forum: Smarty Development Posted: Sat Mar 27, 2004 2:15 pm Subject: compile function |
I am not sure it is the rigth place for this.
On the Smarty_Compiler class, line around 620 (function _compile_compiler_tag), smarty adds <?php and ?> between the output of the plugins, and I a ... |
Topic: secure mode and load_config |
shuther
Replies: 4
Views: 15453
|
Forum: Bugs Posted: Mon Mar 15, 2004 11:09 am Subject: secure mode and load_config |
I found the problem, I fogot to add:
$smarty->secure_dir = array($smarty->config_dir);
But maybe it could be automatic? |
Topic: secure mode and load_config |
shuther
Replies: 4
Views: 15453
|
Forum: Bugs Posted: Mon Mar 15, 2004 11:03 am Subject: secure mode and load_config |
I am using the last CVS version.
I have $smarty->config_dir that is not in $smarty->trusted_dir
with security = true, I got the errors:
(secure mode) accessing "file C:\devl\projet\include/c ... |
Topic: cache_handler_func and default cache |
shuther
Replies: 0
Views: 7108
|
Forum: Smarty Development Posted: Tue Mar 09, 2004 3:30 pm Subject: cache_handler_func and default cache |
Would it be possible to define a default cache_handler_func value? For example: 'core_cache_defaultfile_func', and to put the specific code (for example):
$_params = array('auto_bas ... |
Topic: some fixes to avoid notices |
shuther
Replies: 3
Views: 11302
|
Forum: Smarty Development Posted: Thu Feb 05, 2004 12:00 pm Subject: some fixes to avoid notices |
RCS file: /repository/smarty/libs/Smarty.class.php,v
retrieving revision 1.475
diff -w -b -r1.475 Smarty.class.php
1227c1227
< if (@count($this->_cache_info
RC ... |
Topic: some basic fixes or improvements of basic plug ins |
shuther
Replies: 2
Views: 10050
|
Forum: Plugins Posted: Thu Feb 05, 2004 11:46 am Subject: some basic fixes or improvements of basic plug ins |
Here is a list of some patches, I hope you will like them
in smarty\libs\plugins\function.mailto.php:
The variable $js_encode is never defined (there is a $js_encore =. after)
diff -w -b -r1.7 ... |
Topic: scope issue |
shuther
Replies: 1
Views: 8066
|
Forum: Bugs Posted: Mon Jan 19, 2004 4:32 pm Subject: scope issue |
Here is a new problem (or it is normal?): the variable disapears (last official release of smarty)
In a.tpl, I do this:
{include_php file="calendar.inc.php" once="true" ... |
Topic: auto cache_id |
shuther
Replies: 3
Views: 12075
|
Forum: Feature Requests Posted: Thu Jan 15, 2004 2:52 pm Subject: How to implement it. |
Here is the thing.
The first time, we generate an array of variables that makes the page different, such as:
array('username' => 'user1',
'SID' => '3243423435353446765', ...)
Then, we s ... |
Topic: auto cache_id |
shuther
Replies: 3
Views: 12075
|
Forum: Feature Requests Posted: Tue Jan 13, 2004 3:12 pm Subject: auto cache_id |
I am not sure that it is doesn't exist, but it should interest a lot of people.
Here is the thing : each .php file has just:
$smarty->display('index.tpl')
And the index.tpl contains th ... |
Topic: issue with objets registered through a template |
shuther
Replies: 5
Views: 13983
|
Forum: Bugs Posted: Tue Jan 13, 2004 2:49 pm Subject: Feature request or bug |
Ok, for me it is a bug, I am going to explain why:
When we can the a.tpl file
{include_php file="a.php" once=true }
{include file="b.tpl"}
and the b.tpl ... |
Topic: issue with objets registered through a template |
shuther
Replies: 5
Views: 13983
|
Forum: Bugs Posted: Thu Jan 08, 2004 3:55 pm Subject: So |
That is why I think it is a bug. There is a turnaroung, but it is not very clean. I tried to register a empty object in the main php file, but that doesn't help, because smarty is checking the method ... |
Topic: issue with objets registered through a template |
shuther
Replies: 5
Views: 13983
|
Forum: Bugs Posted: Sun Jan 04, 2004 9:04 pm Subject: issue with objets registered through a template |
I think I found a bug(I think), let's see. (found in the last version, but existed in 2.5)
I have a file a.tpl with:
{include_php file="a.php" once=true }
{Preferences-> ... |
|