S
S
Stepan S.2014-12-12 15:23:50
ruby
Stepan S., 2014-12-12 15:23:50

How to insert PHP into *.slim?

It so happened that the layout of the page is in Slim, but you need to save it in PHP.
If you write:
| php_code
then the file is not compiled
Oh yes, php is used for the html tag
Ie . get this code

doctype html
| php_code
    head
        …

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Stepan S., 2014-12-26
@miloslovesky

Currently slim does not compile file without html tag

S
Sergey Krasnodemsky, 2014-12-12
@Prognosticator

what if this particular page is translated from .slim to .html ?

K
knotik, 2014-12-19
@knotik

in order to get the index.php file after compiling the .slim file, you need to name the .slim file index.php.slim

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question