Can not render in custom php file

Notice: This thread is very old.
RyoPegasus
Member | 1
+
0
-

i have a latte framework wordpress theme.

i have this code at theme's core file

{includePart “portal/parts/carousel-reviews-stars”, item ⇒ $post, showCount ⇒ false}

its perfectly works. But i want to create mycustomphp.php and paste this code it wont renders.

how can i include my custom php file in to this latte framework or how can i render this code in my custom php?

thanks.

Marek Bartoš
Nette Blogger | 720
+
0
-

Not sure if it works but maybe one of that: {include mycustom.php}, {import mycustom.php}, {php include(‘mycustom.php’);}