Author |
Message |
Topic: Smarty 3.1 DEV available |
vorapoap
Replies: 1
Views: 30884
|
Forum: Smarty Development Posted: Thu Jul 21, 2011 3:53 pm Subject: Smarty 3.1 DEV available |
Any hope to include GETTEXT as Smarty Native (e.g.)
{_ HELLO PEOPLE!}
^ Currently I do this via prefilter and postfilter.
But it does not always work nice in JavaScript and etc.
the o ... |
Topic: Anyone notice that APC fails to cache any -compiled- files |
vorapoap
Replies: 5
Views: 8634
|
Forum: General Posted: Thu Jul 21, 2011 3:49 pm Subject: Anyone notice that APC fails to cache any -compiled- files |
Oh this is great! Thank you very much
Last time I switched to 3.1, I got many errors with my old apps.
but today I got only one error with a new application and framework.
Here is the place to re ... |
Topic: Anyone notice that APC fails to cache any -compiled- files |
vorapoap
Replies: 5
Views: 8634
|
Forum: General Posted: Thu Jul 21, 2011 12:46 pm Subject: Anyone notice that APC fails to cache any -compiled- files |
As expected, include_once gets APC to store a file in OPCODE, but sequence calls to include doesn't use the OPCODE, it read directly from file system.
I know this by looking at the Hits value in AP ... |
Topic: Anyone notice that APC fails to cache any -compiled- files |
vorapoap
Replies: 5
Views: 8634
|
Forum: General Posted: Thu Jul 21, 2011 12:36 pm Subject: Anyone notice that APC fails to cache any -compiled- files |
You don't need CacheResource APC in some thread of this forum to produce this problem.
Around line 433 in sysplugins/smarty_internal_template.php
//if (function_exists('apc_compile_fil ... |
Topic: {block}creates 2sets of code in .tpl.php(1st w content=NULL) |
vorapoap
Replies: 2
Views: 5781
|
Forum: Bugs Posted: Mon Dec 20, 2010 7:15 pm Subject: {block}creates 2sets of code in .tpl.php(1st w content=NULL) |
Oh. I kept being ignorance about this!
Thank you again! |
Topic: Template {function} becomes a real template function |
vorapoap
Replies: 4
Views: 11430
|
Forum: Feature Requests Posted: Mon Dec 20, 2010 7:12 pm Subject: Template {function} becomes a real template function |
Hmm. I guess that this is because that Smarty does only a single phase template compilation... If for any reasons in the future, Smarty will go for double phases, please consider this.
Thank you |
Topic: {block}creates 2sets of code in .tpl.php(1st w content=NULL) |
vorapoap
Replies: 2
Views: 5781
|
Forum: Bugs Posted: Fri Dec 17, 2010 4:51 pm Subject: {block}creates 2sets of code in .tpl.php(1st w content=NULL) |
Here is the sample code.. I registerPlugin for block call json
public function _block_json($params, $content) {
if ($content == NULL) return;
if ($params['assign' ... |
Topic: Smarty native gettext |
vorapoap
Replies: 0
Views: 6525
|
Forum: Feature Requests Posted: Fri Dec 17, 2010 4:05 pm Subject: Smarty native gettext |
I accomplish this {_ Translate Blah Blah...} by using a preFilter + postFilter. By doing so, .tpl.php generated by Smarty will be compatible with any po Editor.
public function _tpl_preFilter ... |
Topic: Template {function} becomes a real template function |
vorapoap
Replies: 4
Views: 11430
|
Forum: Feature Requests Posted: Fri Dec 17, 2010 3:53 pm Subject: Template {function} becomes a real template function |
I just think that this would be more convenient.
Another thing that you won't be able to use a parameter with name = "name" since name is a parameter for {call ...}
So why create a compl ... |
Topic: php for {function} is defined more than once in final output |
vorapoap
Replies: 2
Views: 10344
|
Forum: Feature Requests Posted: Sun Dec 12, 2010 12:54 am Subject: php for {function} is defined more than once in final output |
Ha.. I complete this by making another {block} in a parent template just to include this include.global.tpl and make sure that a child template won't override this.
Thank you very much!!!
(You may ... |
Topic: {$smarty.block.xxxx} is not available when use extends: |
vorapoap
Replies: 5
Views: 10366
|
Forum: Bugs Posted: Sun Dec 12, 2010 12:21 am Subject: {$smarty.block.xxxx} is not available when use extends: |
Yaa! Thanks
Sorry for this..
That was my mistake! |
Topic: {$smarty.block.xxxx} is not available when use extends: |
vorapoap
Replies: 5
Views: 10366
|
Forum: Bugs Posted: Sat Dec 11, 2010 10:10 am Subject: {$smarty.block.xxxx} is not available when use extends: |
{extends file="outer.tpl"}
{block name=dependency}
{if $PAGE.NAME != 'espiams'}
xxxxx
{/if}
{if $PAGE.NAME == 'espiams/app' || ... |
Topic: {$smarty.block.xxxx} is not available when use extends: |
vorapoap
Replies: 5
Views: 10366
|
Forum: Bugs Posted: Sat Dec 11, 2010 10:08 am Subject: {$smarty.block.xxxx} is not available when use extends: |
But the second one ->fetch("extends:")...
Smarty returns errors like this
Exception SmartyCompilerException
Message Syntax Error in template "templates/pages/espiams/outer.tpl ... |
Topic: {$smarty.block.xxxx} is not available when use extends: |
vorapoap
Replies: 5
Views: 10366
|
Forum: Bugs Posted: Fri Dec 10, 2010 12:34 pm Subject: {$smarty.block.xxxx} is not available when use extends: |
I have tested this.
It works if we use {extends file=...}
but not working for ->fetch("extends:....")
Are there any differences between this? |
Topic: Callable {function..} defined in {include file=...} |
vorapoap
Replies: 1
Views: 7513
|
Forum: Feature Requests Posted: Fri Dec 10, 2010 10:40 am Subject: Callable {function..} defined in {include file=...} |
Dear Developer,
I think this behavior changes in recent Smarty version via it is working in some previous beta version.
I used to be able to define {function .... scope=global} only once in the ... |
|