fnobi / php-express

enable express server to exec php.
36 stars 15 forks source link

Add to the documentation how to pass parameters to the view #12

Closed emanuelet closed 5 years ago

emanuelet commented 8 years ago

I spent quite some time to get it to work.

For who is wondering how to do it

    return res.render("index.php", {
            get: {
                slug: slug
            }
        });

same thing for a POST request

Chickenchaser-Kwak commented 7 years ago

You saved my life. Thanks :-)

suminexrepo commented 2 years ago

Wow thanks for this. I spent like 2 days on the issue before I found this post. Thank you. Still can't get post to work, but get should be good enough.