PHP code example of gosukiwi / silex-katar

1. Go to this page and download the library: Download gosukiwi/silex-katar 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/ */

    

gosukiwi / silex-katar example snippets


$app->register(new SilexKatar\KatarServiceProvider(), array(
  'katar.views_path' => __DIR__ . '/views',
  'katar.debug' => false,
));

// Somewhere in your code...

$app->get('/myRote', function () use ($app) {
  // Some code...
  return $app['katar']->render('myView.katar.html', array( 'data' => 'someVal' ));
});