Comments (3)
Thank you for your help. I think you are right. The project is very old and was using Smarty v2 long time ago. It has been running with Smarty v3/v4 for long time. Maybe the template with the old syntax is seldom used, so I didn't notice the error until today.
I will do more checks, thank you again.
from smarty.
Do you know what the latest version is where your syntax still works? Thanks.
from smarty.
It's not a regression, at least not a recent one. I tested it against 3.1.46 with the same result. You're probably coming from Smarty v2? The v2 > v3 upgrade guide doesn't specifically mention your codestyle, but it does mention that Smarty 3 has a new syntax, which is stricter. It also mentions whitespace from being important now. Since v3 has been out over a decade now, we will stick to the v3 syntax.
from smarty.
Related Issues (20)
- [Unescape modifier] not working when call / use normal function HOT 6
- Support Named Argument when execute function HOT 1
- |strip_tags:true filter does not work if the input is exactly the number 0 HOT 1
- use 'short echo tag' in generated output..? HOT 4
- Does not allow do math operations
- date('d.m.Y') - not work!!!!!!!!!! HOT 7
- Method Smarty_Template_Compiled::render() should return string but return statement is missing
- setForceCompile(TRUE) in Smarty 5 throw exception 'unable to write file' HOT 16
- Output filter on smarty v.5 doesn't running . HOT 11
- @Factify we could use a little bit more information. Maybe some sample code and the actual output vs expected output?
- 5.0.0-rc1 is released as 4.3.3 HOT 6
- setEscapeHtml true will also escape output of functions in smarty 5 HOT 3
- Smarty 5: `registerPlugin()` no longer working with names containing non-lowercase characters HOT 3
- Smarty registerPlugin HOT 4
- Migration recomendation HOT 3
- Auto-escaping on function and block handlers is underdefined HOT 2
- Compilation error ? HOT 2
- Debug function is broken HOT 1
- Undefined array keys warnings. HOT 2
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.