PHP code example of kerkness / kore-wp
1. Go to this page and download the library: Download kerkness/kore-wp library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kerkness / kore-wp example snippets
Template::render('template-file', [], __FILE__);
<h1>Hello echo $name
<h1>Hello echo $name
$template = Template::factory(__FILE__);
$template->set_template('my-folder/custom-path/template-file');
$content = $template->render_view([ 'name' => 'World' ]);
echo $content;