PHP code example of wuhhh / template-genie

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

    

wuhhh / template-genie example snippets

twig
{# Blog Post #}
{% set title = entry.title ?? null %}
{% set featuredImage = entry.featuredImage.one() ?? null %}
{% set body = entry.body ?? null %}
twig
{# _partials/entry/blogPost.twig #}
{# Blog Post #}
{% set title = entry.title ?? null %}
{% set author = entry.author.one() ?? null %}
{% set categories = entry.categories.all() ?? [] %}
{% set featuredImage = entry.featuredImage.one() ?? null %}
{% set body = entry.body ?? null %}
{% set publishDate = entry.publishDate ?? null %}