PHP code example of smart-cms / theme

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

    

smart-cms / theme example snippets


return [
];

$theme = new smart-cms\Theme();
echo $theme->echoPhrase('Hello, smart-cms!');
css
@source '../../../../vendor/smart-cms/theme/resources/**/*.blade.php';
bash
php artisan vendor:publish --tag="theme-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="theme-config"
bash
php artisan vendor:publish --tag="theme-views"