PHP code example of wrey75 / johannes
1. Go to this page and download the library: Download wrey75/johannes 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/ */
wrey75 / johannes example snippets
//
// In a dedicated init.php file
//
$cms = new Johannes\CMSEngine(); // Create the engine
$cms->init(); // init the engine
$cms->setTheme("brave"); // select the theme
$cms->useTemplate( "basic" ); // The basic page
$cms->setTitle( _("Welcome") ); // Set title...
$cms->push("app", $app ); // Add data (can be instances of classes, anonymous functions or arrays)
$cms->run(); // render the page