PHP code example of andydune / rzn-view-component

1. Go to this page and download the library: Download andydune/rzn-view-component 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/ */

    

andydune / rzn-view-component example snippets


return array(
    'rznviewcomponent' => array(
        'cache_service' => 'cache_view_component',
        'cache_adapter' => array(
                                'name' => 'filesystem',
                                'options' => array(
                                    'ttl' => 3600,
                                    'dirLevel' => 2,
                                    'file_locking' => false,
                                    'cacheDir' => 'data/cache',
                                    'dirPermission' => 0755,
                                    'filePermission' => 0666,
                                ),
                            ),
        'cache_remove_item_key' => 'slay_component_cache', 
        'cache_allow'   => false, // check cache adapter options and set true to enable component cache
        'view_script_prefix' => '', // not used yet
        'use_result_object' => false
    )
); 

    <?= $this->                  array('id' = $this->id), 
                                array('result_key_return' => array('title'))) 
	
    <?= $this->                 'component/bank-info', 	
                                array('id' = $this->id), 
                                array()) 

   ...
   'modules' => array(
        'RznViewComponent',
   ),
   ...