Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 55 matches
Smarty Forum Index
Author Message
  Topic: Access the Smarty-Parser
SlowFox

Replies: 7
Views: 23410

PostForum: General   Posted: Sat May 07, 2022 7:57 am   Subject: Access the Smarty-Parser
Why your business logic sticking out in templates?
Wrap it into a presentation-safe function.
It is not a matter of business logic: In most cases it is just class constants being used to access arra ...
  Topic: Extending Smarty 4
SlowFox

Replies: 4
Views: 17212

PostForum: General   Posted: Tue Feb 15, 2022 11:28 pm   Subject: Extending Smarty 4
I wrote some quick comments, but I did not gave it a thorough review
No problem - I tried to consider your remarks. The singular form PluginsNamespace has been chosen to resemble PluginsDir, but I am ...
  Topic: Extending Smarty 4
SlowFox

Replies: 4
Views: 17212

PostForum: General   Posted: Sat Feb 12, 2022 11:10 pm   Subject: Extending Smarty 4
But ouch.
I gave it a try over the last few days and actually a proof of concept was easier than expected. The question is now: What to do with it and how to go on? The patch is not too big, I can ea ...
  Topic: Creating if/counter/foreach based on number instead of array
SlowFox

Replies: 4
Views: 18519

PostForum: General   Posted: Sat Jan 29, 2022 10:16 pm   Subject: Creating if/counter/foreach based on number instead of array
Without having tested it, but why not


{for $item=1 to $order.amount}
<Resource>
<Part Run="Part-{$item}" />
<RunList& ...
  Topic: Extending Smarty 4
SlowFox

Replies: 4
Views: 17212

PostForum: General   Posted: Sat Jan 29, 2022 10:08 pm   Subject: Extending Smarty 4
First of all: I have read that this Forum should already have been deleted - obviously it was not, and as I don't have a reddit account and find this much more convenient anyway, I'll try my luck here ...
  Topic: Will Smarty2 work with php8?
SlowFox

Replies: 9
Views: 11103

PostForum: General   Posted: Mon Mar 22, 2021 6:00 pm   Subject: Will Smarty2 work with php8?
If you have any concrete ideas, please join the team
If there still is some ongoing development, this is a real option (though I am not a very good teamplayer).

Actually I am not missing too much: ...
  Topic: Will Smarty2 work with php8?
SlowFox

Replies: 9
Views: 11103

PostForum: General   Posted: Sat Mar 20, 2021 3:48 pm   Subject: Will Smarty2 work with php8?
Depends on release date of Smarty 4.
Is there any ongoing work on Smarty (apart from bugfixes)? My impression was rather a complete loss of interest during the last couple of years.
  Topic: default modifiers
SlowFox

Replies: 0
Views: 5717

PostForum: General   Posted: Sat Nov 28, 2020 8:58 am   Subject: default modifiers
As there seems to be no more noteworthy development on Smarty chances to be heard are not too big, but anyway: I'd plead for the default modifiers to be applied at run-time instead of compile-time.
...
  Topic: Access the Smarty-Parser
SlowFox

Replies: 7
Views: 23410

PostForum: General   Posted: Sat May 23, 2020 6:04 pm   Subject: Access the Smarty-Parser
That's not an area you should test.
Well, service is my success (and reduced service calls are my gain).

If it's not possible to get there: ok, I'll live with it, like I've done for the last decad ...
  Topic: Access the Smarty-Parser
SlowFox

Replies: 7
Views: 23410

PostForum: General   Posted: Thu May 21, 2020 9:43 pm   Subject: Access the Smarty-Parser
That makes no sense.
Not even unit tests require that kind of introspection.
Well, sense or not...

If somebody modifies a template (yes, there ARE client who may do that) and damages a class name ...
  Topic: Access the Smarty-Parser
SlowFox

Replies: 7
Views: 23410

PostForum: General   Posted: Thu May 21, 2020 10:52 am   Subject: Access the Smarty-Parser
As one of my project grows bigger I implement ways for automatic testing. In PHP I can use php-ast to parse my source files and e.g. check if classes, methods or constands do exist. In my Smarty-Templ ...
  Topic: closures as output filters
SlowFox

Replies: 3
Views: 3560

PostForum: General   Posted: Wed Aug 22, 2018 7:29 am   Subject: closures as output filters
Do you really NEED output filtering? I'm curious.
Of course there are different approaches for everything, so I don't need it.

But it seemed to be quite elegant: I use Smarty for pretty much every ...
  Topic: closures as output filters
SlowFox

Replies: 3
Views: 3560

PostForum: General   Posted: Thu Aug 16, 2018 9:02 pm   Subject: closures as output filters
[deleted]
  Topic: Access custom block from custom function
SlowFox

Replies: 2
Views: 4691

PostForum: General   Posted: Wed Aug 14, 2013 9:07 am   Subject: Access custom block from custom function
Hm. Stupid question? Stupid problem? Stupid else?
  Topic: Access custom block from custom function
SlowFox

Replies: 2
Views: 4691

PostForum: General   Posted: Sun Aug 04, 2013 4:15 pm   Subject: Access custom block from custom function
I have a template like:

{inputform layout=Layout::Table}
{formfield field=$field layout=Layout::Table}
{/inputform}

which does pretty much the ...
 
Page 1 of 4 Goto page 1, 2, 3, 4  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP