PHP code example of tacowordpress2 / util

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

    

tacowordpress2 / util example snippets


\Taco\Util\View::setDirectories([
  __DIR__.'/../views/', // Theme-specific views directory
  __DIR__.'/views/',    // Fallback views directory
]);

echo \Taco\Util\View::make('article/article-list', [
  'articles' => Article::getRecent(),
  'header' => 'Recent articles',
]);