Coder Social home page Coder Social logo

helmutkaufmann / wn-twigext-plugin Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 3.0 3.71 MB

Twig filters and functions extension plugin for WinterCMS. TwigExt allows developers to easily add new Twing funcions and filters to the currently active WinterCMS template.

License: MIT License

PHP 100.00%
winetr wintercms twig plugin extention twig-functions twig-filter

wn-twigext-plugin's Introduction

wn-twigext-plugin's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wn-twigext-plugin's Issues

A doubt with the use of redirect Twig tag

Hi,
in the example you say that to use redirect Twig tag we must use:

{% redirect('https://mercator.li') %}

I have tried to put it directly on a new page (for example /redir-test) as:

title = "Mercator Redir"
url = "/redir-test"
is_hidden = 0
==
{% redirect('https://mercator.li') %}

and when I want to test it, I have the following error:

Unknown "redirect" tag.

but if instead of using it as in the example, I use it like this (using double { ):

{{ redirect('https://mercator.li') }}

it redirect OK to the destination page without errors.

Could someone explain to me if I'm doing something wrong, if I'm using it incorrectly or if it's just due to an error in the documentation?

Thanks in advance.

cryptEncryptString Decrypt using Laravel

I am facing an issue with cryptEncryptString function in this extension.

I encrypt using the function cryptEncryptString and decrypt using Laravel's Crypt::decryptString, but the decrypted string doesn't match. "i:" is added in the beginning and ";" is added in the end. So if i encrypt the number 18, when i decrypt it i get the value i:18;

Is it not possible to encrypt using the function and decrypt using Laravel?

Stringloader not found

Hi there,
thanks for the plugin. I just did the "rough" installation by creating the subfolders and then uploading everything from the Github repository into the twigext folder.

The backend still works and after forcing an update of the system i can see the plugin and it is activated.

BUT: the frontend does not work anymore and shows me this:
Class "Twig_Extension_StringLoader" not found

Class "Twig\Extra\Intl\IntlExtension" not found

I just installed the Extension but get this error as soon as i activate it:

Class "Twig\Extra\Intl\IntlExtension" not found

I do not know if i can manually move them or if i have to add it to some file so that it will be downloaded. I am a noob about this. Sorry.

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.