Git Product home page Git Product logo

Comments (7)

wisskid avatar wisskid commented on July 19, 2024 1

@cYbercOsmOnauT you are not wrong. But you will still need to call some functions in your code. Luckily, smarty provides several modifiers for this and you can also add your own.

This is not necessary here, since we have the date_format modifier:

{$myVar|date_format:"%Y-%m-%d"}

from smarty.

wisskid avatar wisskid commented on July 19, 2024

I have no idea what you are trying to say. Is there a bug?

If so, please let us know what version you are using, what happened (with steps to reproduce) and what you expected to happen.

from smarty.

AlexJMcloud avatar AlexJMcloud commented on July 19, 2024

It's easier to write in the changes that you have completely removed support for php functions.
I have installed version 5.0

from smarty.

AlexJMcloud avatar AlexJMcloud commented on July 19, 2024

Although it is written in your concept: - you need to give the editing of the template to the secretary. Let him write whatever he wants. I didn’t put down the html tags, well, okay, let it just be a text.

from smarty.

AlexJMcloud avatar AlexJMcloud commented on July 19, 2024

javascript can also be disabled.

from smarty.

scottchiefbaker avatar scottchiefbaker commented on July 19, 2024

@AlexJMcloud is this a bug report or a rant? I'm not sure what the heck you're expecting here. Either get to the point, or move on.

from smarty.

cYbercOsmOnauT avatar cYbercOsmOnauT commented on July 19, 2024

First of all: As far as I know v5.0 is not released yet. You are working with a beta release at best. Right?
Second: v4.x is still available and all you need to do is to remove your v5.0 Smarty directory and overwrite it with 4.x.

In my opinion you have a suggestion that something should stay. I understood that you want to be able to use PHP functions directly in a template. I don't like to work like this. A template is to show something. Data is created in the script(s). Correct me if I am wrong.

from smarty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.