PHP code example of comnect / smarty

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

    

comnect / smarty example snippets


// laravel4 blade template render
View::make('template', ['hello']);
// use smarty method
View::assign('word', 'hello');  
View::clearAllAssign(); // smarty method

'Comnect\Smarty\SmartyServiceProvider'
bash
$ php artisan comnect:smarty-cacheclear
bash
$ php artisan comnect:smarty-clear-compiled
bash
$ php artisan config:publish comnect/smarty