PHP code example of battis / bootstrapsmarty
1. Go to this page and download the library: Download battis/bootstrapsmarty 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/ */
battis / bootstrapsmarty example snippets
use Battis\BootstrapSmarty\BootstrapSmarty;
$smarty = BootstrapSmarty::getSmarty();
// ...app logic...
$smarty->assign('content', '<p>whatever content you want displayed</p>');
$smarty->display();
$smarty->addTemplateDir('path/to/your/templates_dir');
$smarty->addStylesheet('path/to/your/stylesheet.css');