Comments (11)
What is advantage of using version 5 when all default functions of PHP are removed and must be added manually and there are problems with some functions.
from smarty.
I don't think there's an easy fix for this. Can you change your template to use a foreach loop?
from smarty.
I have listed some of functions:
- key
- ksort
- krsort
- natsort
- natcasesort
- asort
- arsort
- sort
- rsort
- usort
- uasort
- uksort
- shuffle
- array_walk
- array_walk_recursive
- end
- prev
- next
- reset
- current
- extract
- array_multisort
- array_push
- array_pop
- array_shift
- array_unshift
- array_splice
from smarty.
@Nightprince for a discussion about the decision to drop support for the use of unregistered callables in v5, see #967. For the breaking change regarding passing variables by reference, I'll use #964 and close this issue.
from smarty.
@Nightprince for a discussion about the decision to drop support for the use of unregistered callables in v5, see #967. For the breaking change regarding passing variables by reference, I'll use #964 and close this issue.
Why should issue be closed when problem is not fixed?
from smarty.
So we don't have 2 open issues for the same problem.
from smarty.
I suggest you add these as default in Smarty.
from smarty.
No, I don't need foreach.
from smarty.
Smarty 5 adds support for ternary operator and the null coalescing operator, positional parameters for custom tags and a whole new extension architecture.
from smarty.
Well, they are useful if smarty has no problem with default PHP functions. In version 4, many people may have used many PHP functions in smarty that do not have their list. Finding these functions and also having problems in calling them is a very difficult issue.
from smarty.
Re-opening this, since it seems #964 is fixed (for Smarty > v4), but we cannot port that fix to Smarty v5.
from smarty.
Related Issues (20)
- Referencing native php classes within namespace without define global namespace
- Website www.smarty.net hacked? HOT 3
- Shorthand Syntax HOT 1
- Smarty::setExtensions() killing registered filters HOT 6
- CPU spikes in prod every 5 minutes with Smarty v5 HOT 9
- Suggestion: {namspace} compile tag
- PHP Deprecated: Using Smarty::loadFilter() to load filters is deprecated and will be removed in a future release.
- Smarty v5 $smarty.template behavior doesn't match v5 documentation (it now includes a type and directory part)
- Smarty v5 built-in json_encode modifier doesn't take Smarty $_CHARSET encoding into account, and can't be overridden using registerPlugin() HOT 18
- registerPlugin modifier unable to call with reference HOT 7
- Wrong implode/join use? HOT 3
- Check compatability of empty, reset, current, end, prev, next and isset in v5
- smarty.net down HOT 10
- getTemplateVars not working for in template defined variables HOT 3
- Smarty5: {config_load config variables not available in all templates HOT 1
- getTemplateVars - why the change in return signature in smarty 5? HOT 2
- PHP 8.3 problem in Template->appendCode() in Smarty 5
- Variable as a parameter in Smarty 5 HOT 7
- Smarty 4.5.2 template generation causes PHP Warning: Array to string conversion error HOT 1
- Smarty5: installation without composer HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smarty.