Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with php #2

Closed
chellige opened this issue Feb 20, 2016 · 1 comment
Closed

Not working with php #2

chellige opened this issue Feb 20, 2016 · 1 comment
Labels

Comments

@chellige
Copy link

This is exactly the type of solution I was looking for. Unfortunately it does not seem to be processing php. I created a simple test.html file in the user/minicodes folder with this content:

<html>
        <?php
        $output = "Hello World" ;
        echo "<pre>$output</pre>";
        ?>
</html>

And then added a {{ 'test.html' | minicode }} twig-tag to a page. I get the following output:

$output"; ?>

@gracix
Copy link
Owner

gracix commented Feb 23, 2016

chellige, thanks for your report.
This plugin can Raw output from file only. Can not compile php code.
When you process the php in a php, security also has many problems, php that contains the error do not know what causes what.

It is assumed that such use in content.

ex)

Lorem Ipsum is simply dummy text  {{ 'test.html' | minicode }} Lorem Ipsum has been the industry's

In test.html
<span> This is AD </span>

After

Lorem Ipsum is simply dummy text <span> This is AD </span> Lorem Ipsum has been the industry's

@gracix gracix closed this as completed Feb 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants