PHP code example of njxzwh / hjsuperview

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

    

njxzwh / hjsuperview example snippets

 php
SuperView::setConfig($configs);
SuperView::get('soft')->recent();
 php
SuperView::get('soft')->cache(10)->recent();
 php
SuperView::get('soft')->cache(10, true)->recent();
SuperView::get('soft')->recent(); //仍然使用上面的缓存时间

SuperView::get('soft')->cache(20)->recent(); //使用新的缓存时间, 并且只在当前调用中
 php
SuperView::get('soft')->page('list-{page}.html', $page)->recent();
 php
SuperView::get('soft')->page(false, 2)->recent();
SuperView::get('soft')->page(false)->recent(); // 默认为第一页, 作用相当于不使用page方法