Skip to content

Commit 5bb71fd

Browse files
committed
Fix the example
1 parent 26cbbae commit 5bb71fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ templates. Here is a simple example to get you started
202202
{
203203
// force compilation
204204
if ($file->isFile()) {
205-
$twig->loadTemplate(str_replace($tplDir . '/', '', $file));
205+
$twig->load(str_replace($tplDir . '/', '', $file->getRealPath()));
206206
}
207207
}
208208

0 commit comments

Comments
 (0)