외부 코드를 Composer 기반으로 변경
This commit is contained in:
1 parent
8a181055a0
commit
d422c03003
101 files changed
+12743
-19
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
include '../vendor/autoload.php';
|
||||
|
||||
// Create new Plates instance
|
||||
$templates = new League\Plates\Engine('templates');
|
||||
|
||||
// Preassign data to the layout
|
||||
$templates->addData(['company' => 'The Company Name'], 'layout');
|
||||
|
||||
// Render a template
|
||||
echo $templates->render('profile', ['name' => 'Jonathan']);
|
||||
Reference in new issue
Block a user